Allow the user to control the verbosity of merge-recursive.
[gitweb.git] / git-reset.sh
index b9045bc762471b462c3c99a5357b4b30421ea49f..91c7e6e664eeac0a130044d3d026ccbbfa00f3b3 100755 (executable)
@@ -53,11 +53,7 @@ then
        exit
 fi
 
-TOP=$(git-rev-parse --show-cdup)
-if test ! -z "$TOP"
-then
-       cd "$TOP"
-fi
+cd_to_toplevel
 
 if test "$reset_type" = "--hard"
 then