Code

git-commit: cd to top before showing the final stat
authorJunio C Hamano <junkio@cox.net>
Mon, 5 Mar 2007 20:35:41 +0000 (12:35 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 6 Mar 2007 07:11:19 +0000 (23:11 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh

index 476f4f18dbb76041fbbfe6243785ad4997a7e7c7..cad16a5e868730dd56f79baf711aed138d7cafe1 100755 (executable)
@@ -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