False positives in git diff-index

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander Gladysh
Date: Monday, December 27, 2010 - 1:49 am

Hi, list!

I wrote about the related issue earlier:

http://lists-archives.org/git/731516-false-positives-from-git-diff-index-when-used-wit...

Now I've got a case when I can reproduce this problem each time I try to.

Unfortunately I can not share it or create a minimal example — the
case is triggered by a custom complicated automated build process on a
private repository.

Anyway, I'm ready to debug this issue if someone will guide me.

Workflow:

<...change files in /path/dir1/...>
(cd /path && git add </path/dir1/>)
(cd /path && git commit -m <message1>)

... repeat change-add-commit several times for various directories
(can be the same directory or not) ...

<...generate file /path/dirN/foo...>
# Accidentally the file is generated the same as it was

(cd /path && git add </path/dirN/>)
(cd /path && git status) # Refresh index
(cd /path && git diff-index --exit-code --quiet HEAD -- /path/dirN) #
Incorrectly reports that there are some changes
(cd /path && git commit -m <messageN>) # fails, saying that there is
nothing to commit

If I insert sleep 10 between git status and git diff-index, the
problem goes away.

Any help?
Alexander.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
False positives in git diff-index, Alexander Gladysh, (Mon Dec 27, 1:49 am)
Re: False positives in git diff-index, Alexander Gladysh, (Tue Jan 4, 2:45 am)
Re: False positives in git diff-index, Zenaan Harkness, (Tue Jan 4, 4:47 am)
Re: False positives in git diff-index, Alexander Gladysh, (Tue Jan 4, 5:01 am)
Re: False positives in git diff-index, Jakub Narebski, (Tue Jan 4, 7:08 am)
Re: False positives in git diff-index, Alexander Gladysh, (Tue Jan 4, 7:46 am)