support stupid rcp-style notation for ssh paths in ./all
authorxonotic <xonotic@git.xonotic.org>
Mon, 22 Mar 2010 13:25:30 +0000 (14:25 +0100)
committerxonotic <xonotic@git.xonotic.org>
Mon, 22 Mar 2010 13:25:30 +0000 (14:25 +0100)
all

diff --git a/all b/all
index d485f00e0da35f6030ff9d2ce90dc151a77489d8..d22618ee96b3c215c9957dce3de46ff28f18078d 100755 (executable)
--- a/all
+++ b/all
@@ -20,7 +20,7 @@ d0=`pwd`
 case "$cmd" in
        update|pull)
                base=`git config remote.origin.url`
-               base=${base%/xonotic.git}
+               base=${base%xonotic.git}
                for d in $repos; do
                        if [ -d "$d0/$d" ]; then
                                cd "$d0/$d"
@@ -28,13 +28,13 @@ case "$cmd" in
                                        .)
                                                ;;
                                        *)
-                                               git config remote.origin.url "$base/${d##*/}.git"
+                                               git config remote.origin.url "$base${d##*/}.git"
                                                ;;
                                esac
                                git pull
                                cd "$d0"
                        else
-                               git clone "$base/${d##*/}.git" "$d0/$d"
+                               git clone "$base${d##*/}.git" "$d0/$d"
                        fi
                done
                ;;