Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge part of 'jc/cache-tree'
[gitweb.git]
/
git-reset.sh
diff --git
a/git-reset.sh
b/git-reset.sh
index fe53fc8065dc82c0054ba9891b28a00b0752bf87..6cb073cb16f8b8d8b923bd0cd77be00da0e169e3 100755
(executable)
--- 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