projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c06531
)
Remove MERGE_HEAD after committing merge
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 8 Jun 2005 20:44:32 +0000
(13:44 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 8 Jun 2005 20:44:32 +0000
(13:44 -0700)
git-commit-script
patch
|
blob
|
history
diff --git
a/git-commit-script
b/git-commit-script
index 903c8dfabd9a15053e249ac2909036cab1d2922e..1abfa143ee8fdc3896b9f05b6cc503675d735d4b 100755
(executable)
--- a/
git-commit-script
+++ b/
git-commit-script
@@
-21,4
+21,5
@@
grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
[ -s .cmitmsg ] || exit 1
tree=$(git-write-tree) || exit 1
commit=$(cat .cmitmsg | git-commit-tree $tree -p $PARENTS) || exit 1
-echo $commit > ${GIT_DIR:-.git}/HEAD
+echo $commit > $GIT_DIR/HEAD
+rm -f -- $GIT_DIR/MERGE_HEAD