From: Andrea Stacchiotti <andreastacchiotti@gmail.com>
To: git@vger.kernel.org
Subject: Triggering "BUG: wt-status.c:476: multiple renames on the same target? how?"
Date: Wed, 26 Sep 2018 22:27:27 +0200 [thread overview]
Message-ID: <3c11c193-a978-69be-4b8e-4b59b270338e@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1419 bytes --]
Dear maintainer(s),
the following script, when executed with git 2.19 triggers the bug in
the subject line.
The problem seems to be the interaction between add -N and rename detection.
The git binary used is the one currently packaged in Debian unstable.
I have searched the list for the bug text and have found nothing,
apologies if the bug is already known.
System information, script content and script output follow.
Andrea Stacchiotti
--------------------------
andreas@trelitri:/tmp$ uname -a
Linux trelitri 4.17.0-3-amd64 #1 SMP Debian 4.17.17-1 (2018-08-18)
x86_64 GNU/Linux
andreas@trelitri:/tmp$ git --version
git version 2.19.0
andreas@trelitri:/tmp$ cat bugscript.sh
# Make a test repo
git init testrepo
cd testrepo
git config user.name A
git config user.email B
# Add a file called orig
echo 'a' > orig
git add orig
git commit -m'orig'
# Copy orig in new and modify orig
cp orig new
echo 'b' > orig
# add -N and then commit trigger the bug
git add -N new
git commit
# Cleanup
cd ..
rm -rf testrepo
andreas@trelitri:/tmp$ LANG=C ./bugscript.sh
Initialized empty Git repository in /tmp/testrepo/.git/
[master (root-commit) 5dedf30] orig
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 orig
BUG: wt-status.c:476: multiple renames on the same target? how?
./bugscript.sh: line 18: 22762 Aborted git commit
[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 19043 bytes --]
next reply other threads:[~2018-09-26 20:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 20:27 Andrea Stacchiotti [this message]
2018-09-26 20:56 ` Triggering "BUG: wt-status.c:476: multiple renames on the same target? how?" Ævar Arnfjörð Bjarmason
2018-09-26 21:02 ` Andrea Stacchiotti
[not found] ` <875zysj6fq.fsf@evledraar.gmail.com>
2018-09-27 4:20 ` Elijah Newren
-- strict thread matches above, loose matches on Subject: below --
2018-09-27 7:20 Elijah Newren
2018-09-27 10:15 ` Eric Sunshine
2018-09-27 16:48 ` 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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c11c193-a978-69be-4b8e-4b59b270338e@gmail.com \
--to=andreastacchiotti@gmail.com \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).