applypatch: use "--index" to actually make git-apply write the

changes to the index file.
This commit is contained in:
Linus Torvalds 2005-06-05 14:12:53 -07:00
parent 97b865ba79
commit f48516746f

View File

@ -58,7 +58,7 @@ echo
echo Applying "'$SUBJECT'"
echo
git-apply $PATCHFILE || exit 1
git-apply --index $PATCHFILE || exit 1
tree=$(git-write-tree) || exit 1
echo Wrote tree $tree
commit=$(git-commit-tree $tree -p $(cat .git/HEAD) < $final) || exit 1