projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace xmalloc+memset(0) with xcalloc.
[git.git]
/
git-reset.sh
diff --git
a/git-reset.sh
b/git-reset.sh
index
6c9e58a
..
6cb073c
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 $_;
# it is ok if this fails -- it may already
# have been culled by checkout-index.
unlink $_;
+ while (s|/[^/]*$||) {
+ rmdir($_) or last;
+ }
}
}
' $tmp-exists
}
}
' $tmp-exists
@@
-100,4
+103,4
@@
case "$reset_type" in
;;
esac
;;
esac
-rm -f "$GIT_DIR/MERGE_HEAD"
+rm -f "$GIT_DIR/MERGE_HEAD"
"$GIT_DIR/rr-cache/MERGE_RR"