Implement a test for git-fetch-pack/git-upload-pack
[git.git] / cmd-rename.sh
index ada33fb..34e7f49 100755 (executable)
@@ -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
@@ -49,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