Hello,
I've got an observation for this bug.
If ~/.config/git/config sets a default branch for new repositories other
than "master", this bug is triggered.
For instance, if I configure git to create repositories with "main" as
default branch.
# ~/.config/git/config
[init]
defaultBranch = main
With this configuration, "dgit sbuild" gives me...
,----
| $ dgit sbuild
| Format `3.0 (quilt)', need to check/update patch stack
| examining quilt state (multiple patches, linear mode)
| gzip: warning: GZIP environment variable is deprecated; use an alias or script
| dgit: base trees orig=53be9ecc4e6ed6cbcea7 o+d/p=53be9ecc4e6ed6cbcea7
| dgit: quilt differences: src: == orig == gitignores: == orig ==
| dgit: quilt differences: HEAD == o+d/p HEAD == o+d/p
| starting quiltify (multiple patches, linear mode)
| quiltify linearisation planning successful, executing...
| error: pathspec 'master' did not match any file(s) known to git
| dgit: failed command: git checkout -q master
|
| dgit: error: subprocess failed with error exit status 1
| $ echo $?
| 255
`----
Without this configuration, "dgit sbuild" gives me...
,----
| $ dgit sbuild
| Format `3.0 (quilt)', need to check/update patch stack
| examining quilt state (multiple patches, linear mode)
| gzip: warning: GZIP environment variable is deprecated; use an alias or script
| dgit: base trees orig=53be9ecc4e6ed6cbcea7 o+d/p=53be9ecc4e6ed6cbcea7
| dgit: quilt differences: src: == orig == gitignores: == orig ==
| dgit: quilt differences: HEAD == o+d/p HEAD == o+d/p
| starting quiltify (multiple patches, linear mode)
| quiltify linearisation planning successful, executing...
| nothing quilty to commit, ok.
| dpkg-source: info: using source format '3.0 (quilt)'
| dpkg-source: info: building varnish-modules using existing
./varnish-modules_0.16.0.orig.tar.gz
| dpkg-source: info: building varnish-modules in
varnish-modules_0.16.0-3.debian.tar.xz
| dpkg-source: info: building varnish-modules in varnish-modules_0.16.0-3.dsc
| package seems new, not specifying -v<version>
| dpkg-genchanges: info: not including original source code in upload
| sbuild (Debian sbuild) 0.79.1 (22 April 2020) on turbotape.localdomain
| [...]
`----
--
Stig Sandbeck Mathisen
Debian Developer