diff options
-rwxr-xr-x | git-reset.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-reset.sh b/git-reset.sh index c0feb4435d..03d2c3b937 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -1,8 +1,15 @@ #!/bin/sh USAGE='[--mixed | --soft | --hard] [<commit-ish>]' +SUBDIRECTORY_OK=Yes . git-sh-setup +TOP=$(git-rev-parse --show-cdup) +if test ! -z "$TOP" +then + cd "$TOP" +fi + update= reset_type=--mixed case "$1" in |