[PATCH] Do not install compatibility symlink for what we do not install
[git.git] / cmd-rename.sh
index ada33fb..ad3285b 100755 (executable)
@@ -4,7 +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"
+       fi
 done <<\EOF
 git-add-script git-add
 git-archimport-script  git-archimport