#!/bin/sh
+#
+# If you installed git by hand previously, you may find this
+# script useful to remove the symbolic links that we shipped
+# for backward compatibility.
+#
+# Running this script with the previous installation directory
+# like this:
+#
+# $ cmd-rename.sh /usr/local/bin/
+#
+# would clean them.
+
d="$1"
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
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