summaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-05 20:35:41 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-06 07:11:19 (GMT)
commitc93d88a574220c00954e3694bd78181b8b95249a (patch)
treeab79bf776457ff95ceb29e28d136d2deeddbe7e8 /git-commit.sh
parentb8105375abfeee54e0a34e1c290983fd15e743cf (diff)
downloadgit-c93d88a574220c00954e3694bd78181b8b95249a.zip
git-c93d88a574220c00954e3694bd78181b8b95249a.tar.gz
git-c93d88a574220c00954e3694bd78181b8b95249a.tar.bz2
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 476f4f1..cad16a5 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