diff --git a/cmd-rename.sh b/cmd-rename.sh
index ada33fb51d13999319f438db3f8437713330a9a3..34e7f494ed000989276cad428d81a97316e995d3 100755 (executable)
--- a/cmd-rename.sh
+++ b/cmd-rename.sh
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
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