Hi, git maintainers. I'm afraid I have another bug for you.
Steps to reproduce
dgit clone debputy-lsp
cd debputy-lsp
git checkout 9ca98dc71acbde18e6328c90d6b48eb752248af1
git status -uall --ignored --porcelain debian/source/format debian/source/options debian/source/local-options debian/source/local-patch-header
Expected behaviour
Successful execution, with no ouptut, as seen in earlier versions of
git, for example 1:2.20.1-2+deb10u9.
Actual behaviour
This message is printed to stderr:
warning: could not open directory 'debian/source/': No such file or directory
This has been reported by a dgit user. dgit runs that rune and
expects it not to mind about the fact that files may not exist.
Indeed, the files not existing is normal and git status doesn't
complain about nonexistence of individual files, only about the
absence of the containing directory. It's not clear to my why git
thinks this is wrong. (Especially given that git doesn't really even
properly track empty directories!)
Niels Thykier writes ("Bug#1078765: dgit: warning: could not open directory 'debian/source/': No such file or directory"):
I was able to reproduce this. Passing -D makes dgit print the
commands its running. I saw this (without my key available, so it
definitely wouldn't actually upload):
$ dgit -D -wgfa push-source
| git rev-parse --show-toplevel
=> `/volatile/ian/Dgit/Bugs/1078765/debputy-lsp'
| git config -z --get-regexp --local '.*'
| git config -z --get-regexp --local '.*'
| git config -z --get-regexp --global '.*'
| git config -z --get-regexp --system '.*'
format , quilt mode linear
| git status -uall --ignored --porcelain debian/source/format debian/source/options debian/source/local-options debian/source/local-patch-header
warning: could not open directory 'debian/source/': No such file or directory
=> `'
+ git diff --quiet HEAD
[...]
dgit: error: You seem to be trying to push an old version.
dgit: Version current in archive: 0.2.1 (in suite sid)
dgit: Version you are trying to upload: 0.2.1
I agree.
...
Unfortunately, git frequently fails to identify itself when it prints
messages.
Ian.