X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=cmd-rename.sh;h=34e7f494ed000989276cad428d81a97316e995d3;hb=d1c5f2a42d7b5c0e3d3862212dea1f09809c4963;hp=1edb037bea880d0f2e8fd47e01d3642838dabcaa;hpb=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7;p=git.git diff --git a/cmd-rename.sh b/cmd-rename.sh index 1edb037b..34e7f494 100755 --- a/cmd-rename.sh +++ b/cmd-rename.sh @@ -4,7 +4,10 @@ test -d "$d" || exit while read old new do rm -f "$d/$old" - ln -s "$new" "$d/$old" + if test -f "$d/$new" + then + ln -s "$new" "$d/$old" || exit + fi done <<\EOF git-add-script git-add git-archimport-script git-archimport @@ -42,12 +45,10 @@ git-tag-script git-tag git-verify-tag-script git-verify-tag git-http-pull git-http-fetch git-local-pull git-local-fetch -git-ssh-pull git-ssh-fetch git-checkout-cache git-checkout-index git-diff-cache git-diff-index git-merge-cache git-merge-index git-update-cache git-update-index -git-ssh-push git-ssh-upload git-convert-cache git-convert-objects git-fsck-cache git-fsck-objects EOF