I have a pre-commit hook whith does the following: 1. Stash unstaged changes ("git stash -k"). 2. Run flake8 over all staged changes. 3. If flake8 complains, then error out of the commit. 4. Otherwise, apply the stash and exit. This way I am prevented from committing staged changes that don't pass flake8. I can't imagine that this is a terribly uncommon workflow. This worked fine until the aforementioned comment, after which my hook complains, "Cannot apply stash: Your index contains uncommitted changes." This bug was introduced into git in this commit: https://github.com/git/git/commit/ed178ef13a26136d86ff4e33bb7b1afb5033f908 It was reverted in a subsequent commit: https://github.com/git/git/commit/19376104a8251a7e6c56579cdcd2eb0a106d1fd6 The revert will probably be in git 2.4.6 (it's on the 2.4.x branch), but in the meantime, git is broken for me, so I am wondering if we can apply the revert as a patch to git 2.4.3 in F22.
FYI, the revert I'm asking you to pull in is indeed included in git 2.4.6.
git-2.4.3-6.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/git-2.4.3-6.fc22
Package git-2.4.3-6.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing git-2.4.3-6.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-11781/git-2.4.3-6.fc22 then log in and leave karma (feedback).
git-2.4.3-6.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.