control: retitle -1 Allow to skip alias expansion for gbp-clone Hi Andreas, On Fri, Feb 19, 2021 at 09:18:29AM +0100, Andreas Tille wrote: > Package: git-buildpackage > Version: 0.9.22 > Severity: normal > > Hi, > > I closely followed the salsa documentation[1] and did > > git config --global url."g...@salsa.debian.org:".insteadOf salsa: > > and thus a simple > > git clone salsa:team/package > > resulted in > > [remote "origin"] > url = g...@salsa.debian.org:team/package.git > > This was the behavour of a > > gbp clone salsa:team/package > > until "some point / version in time. Now I get unfortunately: > > [remote "origin"] > url = https://salsa.debian.org/team/package.git >
gbp uses 'salsa:' as a shortcut internally expanding to the https:// url (that changed in August 2019) so git never sees the `salsa:` you pass on the command line (see `man gbp-clone` for predefined aliases). You can use git config --global url."g...@salsa.debian.org:".pushInsteadOf "https://salsa.debian.org/" see https://wiki.debian.org/Salsa/Doc. I think we need an option to disable this (`--no-aliases` or `aliases = False` in gbp.conf) so gbp clone --no-aliases salsa:team/package would not expand `salsa:` but pass it down to git instead. Cheers, -- Guido > > where I can not push any more. Its easiy to fix be editing > .git/config - but its simply a nuisance to do that over and > over. It would be great if this could be fixed. > > Thanks a lot for maintaining git-buildpackage > > Andreas. > > [1] https://wiki.debian.org/Salsa/Doc#Canonical_URLs > > > -- System Information: > Debian Release: bullseye/sid > APT prefers testing > APT policy: (501, 'testing'), (50, 'buildd-unstable'), (50, 'unstable'), > (5, 'experimental'), (1, 'buildd-experimental') > Architecture: amd64 (x86_64) > > Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads) > Kernel taint flags: TAINT_WARN > Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), > LANGUAGE=de_DE:de > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages git-buildpackage depends on: > ii devscripts 2.20.5 > ii git 1:2.30.0-1 > ii man-db 2.9.3-2 > ii python3 3.9.1-1 > ii python3-dateutil 2.8.1-5 > ii python3-pkg-resources 52.0.0-1 > ii sensible-utils 0.0.14 > > Versions of packages git-buildpackage recommends: > ii cowbuilder 0.89 > ii pbuilder 0.231 > ii pristine-tar 1.49 > ii python3-requests 2.25.1+dfsg-2 > > Versions of packages git-buildpackage suggests: > pn python3-notify2 <none> > ii sudo 1.9.5p2-2 > ii unzip 6.0-26 > > -- no debconf information >