diff options
author | Rémi Vanicat <vanicat@debian.org> | 2007-11-11 13:28:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-11 15:41:07 -0800 |
commit | 859a4dbcadd200ae955fe36d0c4fb3f4bce0e032 (patch) | |
tree | babf63124993a1254f51f68b1ec521e2543559ed /git-commit.sh | |
parent | a91ef6e75b897a255cc17b70014a39e68dd54c7a (diff) | |
download | git-859a4dbcadd200ae955fe36d0c4fb3f4bce0e032.tar.gz |
Make GIT_INDEX_FILE apply to git-commit
Currently, when committing, git-commit ignore the value of
GIT_INDEX_FILE, and always use $GIT_DIR/index. This patch
fix it.
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-x | git-commit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh index ab43217be4..fdaa019e8f 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -26,7 +26,7 @@ refuse_partial () { } TMP_INDEX= -THIS_INDEX="$GIT_DIR/index" +THIS_INDEX="${GIT_INDEX_FILE:-$GIT_DIR/index}" NEXT_INDEX="$GIT_DIR/next-index$$" rm -f "$NEXT_INDEX" save_index () { |