mirror of
https://github.com/git/git.git
synced 2026-01-27 02:48:32 +00:00
applypatch: use "--index" to actually make git-apply write the
changes to the index file.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user