projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13cfdfd
)
merge-one-file: use rmdir -p
author
Junio C Hamano
<junkio@cox.net>
Sun, 20 Nov 2005 18:40:31 +0000
(10:40 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 20 Nov 2005 18:40:31 +0000
(10:40 -0800)
The flag is universally available, even on VMS; use it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge-one-file.sh
patch
|
blob
|
history
diff --git
a/git-merge-one-file.sh
b/git-merge-one-file.sh
index
b285990
..
c3eca8b
100755
(executable)
--- a/
git-merge-one-file.sh
+++ b/
git-merge-one-file.sh
@@
-26,11
+26,7
@@
case "${1:-.}${2:-.}${3:-.}" in
fi
if test -f "$4"; then
rm -f -- "$4" &&
- dn="$4" &&
- while dn=$(expr "$dn" : '\(.*\)/') && rmdir "$dn" 2>/dev/null
- do
- :;
- done
+ rmdir -p "$(expr "$4" : '\(.*\)/')" 2>/dev/null
fi &&
exec git-update-index --remove -- "$4"
;;