summaryrefslogtreecommitdiff
path: root/git-reset.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-02-18 22:55:42 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-02-18 22:55:42 -0800
commit709a9e5771ddb32995df6a0622e5d643baa4487a (patch)
tree2f0a8abd8d61d569b02afd7a6a15df5c7a4be10a /git-reset.sh
parentAdd an Emacs interface in contrib. (diff)
parentFix retries in git-cvsimport (diff)
downloadtgif-709a9e5771ddb32995df6a0622e5d643baa4487a.tar.xz
Merge fixes up to GIT 1.2.2
Diffstat (limited to 'git-reset.sh')
-rwxr-xr-xgit-reset.sh3
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