Package: git-debpush
Version: 15.2~bpo13+1
Severity: normal
File: /usr/bin/git-debpush
Steps
For example:
[branch "trixie-bpo"]
remote = .
merge = refs/heads/trixie-bpo
git checkout trixie-bpo
git-debpush
Expected results
An error message and a nonzero exit status.
Actual results
No output. A nonzero exit status.
Discussion
Running it with DGIT_TEST_DEBPUSH_DEBUG shows
++ git config branch.trixie-bpo.remote
+ remote=.
++ git config remote...url
+ remote_url=
Apparently git config silently exits nonzero when the configuration
key is not set.
Therefore any time we run git config not expecting that it might fail,
we need to test $? and possibly print a message of our own. (Unless
there's an option for that.) We should probably make a helper shell
function for this.
Ian.