Simon McVittie writes ("Bug#1111194: git-debpush: please upload without
tripping submodule check if .gitmodules is empty"):
> On Mon, 18 Aug 2025 at 18:50:49 +0100, Ian Jackson wrote:
> >Probably we should be checking for anomalous objects in the tree.
>
> I think ideally git-debpush would check for the actual submodule (or more
> generally, a tree containing object types that it doesn't/can't support)
> rather than .gitmodules, if that is something that can be done
> reasonably efficiently at tagging time.
Proof of concept:
git-ls-tree -r HEAD: --format='%(objecttype)' | grep -v blob
Ian.
--
Ian Jackson <[email protected]> These opinions are my own.
Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.