diff options
author | Junio C Hamano <junkio@cox.net> | 2006-02-18 22:55:42 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-18 22:55:42 -0800 |
commit | 709a9e5771ddb32995df6a0622e5d643baa4487a (patch) | |
tree | 2f0a8abd8d61d569b02afd7a6a15df5c7a4be10a /git-reset.sh | |
parent | Add an Emacs interface in contrib. (diff) | |
parent | Fix retries in git-cvsimport (diff) | |
download | tgif-709a9e5771ddb32995df6a0622e5d643baa4487a.tar.xz |
Merge fixes up to GIT 1.2.2
Diffstat (limited to 'git-reset.sh')
-rwxr-xr-x | git-reset.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-reset.sh b/git-reset.sh index fe53fc8065..6cb073cb16 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -88,6 +88,9 @@ case "$reset_type" in # it is ok if this fails -- it may already # have been culled by checkout-index. unlink $_; + while (s|/[^/]*$||) { + rmdir($_) or last; + } } } ' $tmp-exists |