Thanks. Interestingly, when I clone from our local clone I don't get the
tags messages:
% git clone server:/git/git-repo
Initialized empty Git repository in /home/mhamilt/git-repo/.git/
remote: Counting objects: 3444, done.
remote: Compressing objects: 100% (1574/1574), done.
remote: Total 3444 (delta 1814), reused 3444 (delta 1814)
Receiving objects: 100% (3444/3444), 3.15 MiB, done.
Resolving deltas: 100% (1814/1814), done.
%
However, repos is not doing a clone. It's actually doing an
init/config/fetch combination, which does produce the tag messages:
% git init --quiet
% git config remote.origin.url server:/git/git-repo
% git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
% git fetch origin +refs/heads/*:refs/remotes/origin/*
refs/tags/*:refs/tags/*
remote: Counting objects: 3444, done.
remote: Compressing objects: 100% (1574/1574), done.
remote: Total 3444 (delta 1814), reused 3444 (delta 1814)
Receiving objects: 100% (3444/3444), 3.15 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1814/1814), done.
From server:/git/git-repo
* [new branch] maint -> origin/maint
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
...
Passing --no-tags to 'git fetch' doesn't stop this, and I'm not sure
this would be the right thing to do anyway. Seems to me that these tags
aren't really necessary in your .repo directory.
On 12/16/15 17:35, David Pursehouse wrote:
> The clone.bundle file is a git bundle (see documentation [1]). I don't
> know if there's documentation of how to set it up in combination with
> Gerrit, but I imagine it's just a case of running git bundle on the
> repository and making the resulting file available over http(s).
>
> The tags/branches being not listed seems to be a difference in git's
> behaviour when cloning from a bundle file vs. from a remote repository.
> For example in the following steps:
>
> $ wget
https://gerrit.googlesource.com/git-repo/clone.bundle
> $ git clone clone.bundle git-repo
>
> the git-repo repository is initialised and cloned from the bundle file,
> the branches and tags are not listed to the console, but are present in
> the repo.
>
> [1]
https://git-scm.com/docs/git-bundle
--
----------------
Mark E. Hamilton