Package: git-buildpackage
Version: 0.9.31

Hi,

I sometimes use the salsa tool from devscripts to clone repositories
from salsa. It uses "gbp clone --all" to do that.
I noticed that I have branches named "origin" that were created by gbp
(they don't exist in the remote repository).

For example:
$ gbp clone --all -v https://salsa.debian.org/reiner/deheader
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:info: Cloning from 'https://salsa.debian.org/reiner/deheader'
gbp:debug: ['git', 'clone', '--quiet', 
'https://salsa.debian.org/reiner/deheader']
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/remotes/']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/origin']
gbp:debug: ['git', 'branch', 'origin', 'origin']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/master']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'branch', 'pristine-tar', 'origin/pristine-tar']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/upstream']
gbp:debug: ['git', 'branch', 'upstream', 'origin/upstream']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/remotes/master']
gbp:debug: ['git', 'ls-tree', '-z', '-r', '-l', 'HEAD', '--']
$ cd deheader/
$ git branch
* master         origin         pristine-tar   upstream
$ git for-each-ref '--format=%(refname:short)' 'refs/remotes/'
origin/HEAD
origin/master
origin/pristine-tar
origin/upstream

Kind regards,
  Reiner

Attachment: signature.asc
Description: PGP signature

Reply via email to