From: Antti Halttunen <Antti.Halttunen@iki.fi>
To: git@vger.kernel.org
Subject: bug: nested submodules get an absolute gitdir path
Date: Wed, 6 Apr 2016 10:02:47 +0300 [thread overview]
Message-ID: <CALoo-5WcdMNMcCW0EQv1VqkE5Ax7bMnvo2r7niYhYyMjA8c4wg@mail.gmail.com> (raw)
Hi all,
Starting with git v2.7.0,
submodules two levels deep get a .git contents of:
gitdir: /absolute/path/name
This breaks repos that are moved or copied:
fatal: Not a git repository:
/tmp/tmp.gIyxKWIC26/repo/.git/modules/sub/modules/sub
fatal: 'git status --porcelain' failed in submodule sub
The script https://gitlab.com/snippets/17301 reproduces the issue.
git bisect points to commit ee8838d1.
thanks,
--
antti
next reply other threads:[~2016-04-06 7:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 7:02 Antti Halttunen [this message]
2016-04-06 15:02 ` bug: nested submodules get an absolute gitdir path Junio C Hamano
2016-04-07 6:44 ` Antti Halttunen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALoo-5WcdMNMcCW0EQv1VqkE5Ax7bMnvo2r7niYhYyMjA8c4wg@mail.gmail.com \
--to=antti.halttunen@iki.fi \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).