From: Matthieu Moy <Matthieu.Moy@grenoble-inp•fr>
To: git <git@vger•kernel.org>
Subject: [BUG] git add . after removing .git/ in a subdirectory triggers assertion failure
Date: Fri, 08 Jan 2016 12:33:06 +0100 [thread overview]
Message-ID: <vpqvb74fgr1.fsf@anie.imag.fr> (raw)
Hi,
No time to debug this for now, but I have a reproduction script:
mkdir test && cd test
git init sub
cd sub/
touch foo && git add . && git commit -m"foo"
cd ..
git init
git add sub
rm -fr sub/.git/
cd sub/
git add .
In short, sub used to be a submodule, but we removed the .git/ and tried
to "git add ." the result.
The last line triggers this:
git: pathspec.c:317: prefix_pathspec: Assertion `item->nowildcard_len <= item->len && item->prefix <= item->len' failed.
Cheers,
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next reply other threads:[~2016-01-08 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-08 11:33 Matthieu Moy [this message]
2016-01-08 12:10 ` [BUG] git add . after removing .git/ in a subdirectory triggers assertion failure Duy Nguyen
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=vpqvb74fgr1.fsf@anie.imag.fr \
--to=matthieu.moy@grenoble-inp$(echo .)fr \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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