[PATCH] convert: return remote branches in git source
Edouard Gomez
ed.gomez at free.fr
Sun Oct 19 15:38:16 CDT 2008
On Sun, 19 Oct 2008 10:41:29 +0200, Patrick Mézard wrote:
>> Make sure getheads() returns all heads, forcing remote branches to be
>> return by git-rev-parse.
>
> Is there a (preferably small) git repository reproducing this issue ?
I browsed through kernel.org git repos and found this one:
git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/posixutils.git
I could not find any smaller one.
$ git-rev-parse --branches
cb7036773c95ef7258c6ddb51fb7b5b7994a27a7
$ git-rev-parse --branches --remotes
cb7036773c95ef7258c6ddb51fb7b5b7994a27a7
cb7036773c95ef7258c6ddb51fb7b5b7994a27a7
28c755aa6aa0e7e50dc7b142c0bcca8edab32403
cb7036773c95ef7258c6ddb51fb7b5b7994a27a7
71cb66864cb62ec6f2e71cce34e731a285ee4511
4f2ceb970938df927184807ffaf1a8a5c57b4557
6fabb7797d9b4db0665fae42297f71889ae325ee
This matches the command:
$ git branch -a
git branch -a
* master
origin/HEAD
origin/du
origin/master
origin/origin
origin/pax
origin/yacc
Note that there's a double in the output, maybe we want to avoid that.
--
Edouard Gomez
More information about the Mercurial-devel
mailing list