Skip to content

Commit

Permalink
git-merge-one-file: do not worry about 'rmdir -p' not removing direct…
Browse files Browse the repository at this point in the history
…ory.

9ae2172 used "rmdir -p"
carelessly, causing the more important "git-update-index
--remove" to be skipped.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 2, 2005
1 parent c639a55 commit ce3ca27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-merge-one-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ case "${1:-.}${2:-.}${3:-.}" in
fi
if test -f "$4"; then
rm -f -- "$4" &&
rmdir -p "$(expr "$4" : '\(.*\)/')" 2>/dev/null
rmdir -p "$(expr "$4" : '\(.*\)/')" 2>/dev/null || :
fi &&
exec git-update-index --remove -- "$4"
;;
Expand Down

0 comments on commit ce3ca27

Please sign in to comment.