[PATCH] git: git-commit-script ignores $GIT_DIR
This commit is contained in:

committed by
Linus Torvalds

parent
837eedf41b
commit
ef6a46e6ea
@ -10,4 +10,4 @@ grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
|
|||||||
[ -s .cmitmsg ] || exit 1
|
[ -s .cmitmsg ] || exit 1
|
||||||
tree=$(git-write-tree) || exit 1
|
tree=$(git-write-tree) || exit 1
|
||||||
commit=$(cat .cmitmsg | git-commit-tree $tree -p HEAD) || exit 1
|
commit=$(cat .cmitmsg | git-commit-tree $tree -p HEAD) || exit 1
|
||||||
echo $commit > .git/HEAD
|
echo $commit > ${GIT_DIR:-.git}/HEAD
|
||||||
|
Reference in New Issue
Block a user