X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cmd-rename.sh;h=34e7f494ed000989276cad428d81a97316e995d3;hb=f0243f26f6d8403cd8e83c7d498c81e01a1f1735;hp=ad3285b7977b7dd1a7f152652004b2731e75b8cb;hpb=bfb73b2ebc2d50c8e14133ad15137604fc54563d;p=git.git diff --git a/cmd-rename.sh b/cmd-rename.sh index ad3285b7..34e7f494 100755 --- a/cmd-rename.sh +++ b/cmd-rename.sh @@ -4,8 +4,9 @@ test -d "$d" || exit while read old new do rm -f "$d/$old" - if [ -x "$d/$new" ]; then - 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 @@ -51,7 +52,3 @@ git-update-cache git-update-index git-convert-cache git-convert-objects git-fsck-cache git-fsck-objects EOF - -# These two are a bit more than symlinks now. -# git-ssh-push git-ssh-upload -# git-ssh-pull git-ssh-fetch