#1132469 /usr/bin/git-debpush: silent exit status nonzero with erronoeus config

#1132469#5
Date:
2026-04-01 14:19:45 UTC
From:
To:
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.

#1132469#10
Date:
2026-05-05 09:00:26 UTC
From:
To:
Hi.  Thanks for the report.  I think this is unambiguously a bug.
Programs should not fail without printing an error message.

Simon Josefsson writes ("Bug#1135721: git-debpush --remote=foobar silently exits"):

I think this may be related to (or even have the same underlying cause
as) #1132469.

Ian.