summaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-05 12:35:41 -0800
committerJunio C Hamano <junkio@cox.net>2007-03-05 23:11:19 -0800
commitc93d88a574220c00954e3694bd78181b8b95249a (patch)
treeab79bf776457ff95ceb29e28d136d2deeddbe7e8 /git-commit.sh
parentb8105375abfeee54e0a34e1c290983fd15e743cf (diff)
downloadgit-c93d88a574220c00954e3694bd78181b8b95249a.tar.gz
git-commit: cd to top before showing the final stat
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 476f4f18db..cad16a5e86 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -621,6 +621,9 @@ else
fi
ret="$?"
rm -f "$GIT_DIR/COMMIT_MSG" "$GIT_DIR/COMMIT_EDITMSG" "$GIT_DIR/SQUASH_MSG"
+
+cd_to_toplevel
+
if test -d "$GIT_DIR/rr-cache"
then
git-rerere