Article View: linux.debian.bugs.dist
Article #7100Bug#1145549: fails to download submodules if run from git checkout and upstream is configured as remote
From: Simon Richter
Date: Tue, 01 Dec 2026 23:50
Date: Tue, 01 Dec 2026 23:50
26 lines
3734 bytes
3734 bytes
Hi,
On 12/2/26 1:30 AM, Agustin Martin wrote:
>> Yes, because now tests/ is a submodule in the current working directory --
>> but that is local state influencing the output of uscan, when all we want is
>> to use the cached objects -- and what's probably worse, uscan also changes
>> local state by attempting to deinitialize and reinitialize the submodules.
> Seems you are completely right. With all the above info I think that the
> sensible choice is to always use a cloned git repo if submodules are
> requested in debian/watch. As you say, even in the best case local state
> will be changed.
That, or a workdir, but we need to take care to clean it up properly.
Most of my packages use git-describe, so they need full clones, making
this a rather expensive and slow operation (that could possibly be fixed
by making it a treeless clone using "--filter=tree:0").
> What do you think?
I'll probably look into it over the weekend, depending on how much I'm
in the mood to deal with the AI fanboys after a relaxing week at work
with the luddites. :)
Simon
Technical Details
Message-ID:
<O5FLH-fqOB-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<Nw1g5-dc1o-15@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <NA2Qi-fnN2-23@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <NO4pb-5rsB-15@gated-at.bofh.it> <NYpLH-bjAF-1@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <NYtPk-blRW-9@gated-at.bofh.it> <O5z3z-fmZk-11@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <O5z3z-fmZk-11@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Simon Richter <sjr@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1145549: fails to download submodules if run from git checkout and upstream is configured as remote Date: Wed, 02 Dec 2026 00:50:01 +0100 Message-ID: <O5FLH-fqOB-3@gated-at.bofh.it> References: <Nw1g5-dc1o-15@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <NA2Qi-fnN2-23@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <NO4pb-5rsB-15@gated-at.bofh.it> <NYpLH-bjAF-1@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <NYtPk-blRW-9@gated-at.bofh.it> <O5z3z-fmZk-11@gated-at.bofh.it> <Nw1g5-dc1o-15@gated-at.bofh.it> <O5z3z-fmZk-11@gated-at.bofh.it> X-Original-To: Agustin Martin <agmartin@debian.org>, 1145549@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Dec 1 23:43:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Simon Richter <sjr@debian.org>, 1145549@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: devscripts@packages.debian.org X-Debian-Pr-Message: followup 1145549 X-Debian-Pr-Package: devscripts X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: devscripts MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Debian-User: sjr X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006421 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Hugh McMaster <hmc@debian.org> X-Original-Date: Wed, 2 Dec 2026 08:41:31 +0900 X-Original-Message-ID: <72472185-1b2b-4008-abeb-4b7828fb47e7@debian.org> X-Original-References: <178767150187.15208.1608292962938188952.reportbug@lime.hogyros.de> <178767150187.15208.1608292962938188952.reportbug@lime.hogyros.de> <apxXj2N9z25BgYKI@lenovo-sid.aq.upm.es> <178767150187.15208.1608292962938188952.reportbug@lime.hogyros.de> <as9XMjxEAvzLPMt1@lenovo-sid.aq.upm.es> <avT2ZCp6JjLeY2cS@lenovo-sid.aq.upm.es> <178767150187.15208.1608292962938188952.reportbug@lime.hogyros.de> <dc404f34-c781-47d3-a54f-147a3e62f696@debian.org> <aw72KJqLfjIyCy4F@lenovo-sid.aq.upm.es> <178767150187.15208.1608292962938188952.reportbug@lime.hogyros.de> <aw72KJqLfjIyCy4F@lenovo-sid.aq.upm.es>