Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git diff-index occasionally fails #43

Closed
ChrisJefferson opened this issue Aug 31, 2017 · 3 comments
Closed

git diff-index occasionally fails #43

ChrisJefferson opened this issue Aug 31, 2017 · 3 comments

Comments

@ChrisJefferson
Copy link
Contributor

The line:

git diff-index --quiet HEAD -- ||
    error "uncommitted changes detected 2"

Occasionally fails on mac. The problem seems very sensitive -- doing a git status or a sleep 1 just before seems to fix the problem.

@ChrisJefferson
Copy link
Contributor Author

git update-index --refresh -- before running git diff-index seems to clear up the problem reliably.

@olexandr-konovalov
Copy link
Member

After the fix, I am having an error:

error: --refresh: does not exist and --remove not passed
fatal: Unable to process path --refresh

@fingolfin
Copy link
Member

Fixed the fix.
@alex-konovalov next time, please submit a new issue. I only saw this comment on a closed issue by pure chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants