git submodule supports relative paths in submodule URLs. Use them.
authorEvan Broder <broder@mit.edu>
Thu, 7 Jan 2010 21:22:43 +0000 (16:22 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 7 Jan 2010 21:22:43 +0000 (16:22 -0500)
svn path=/trunk/scripts/git-migration/; revision=2867

git-migrate-fast.sh

index 0c0cce5..9df05e7 100755 (executable)
@@ -107,7 +107,7 @@ git symbolic-ref HEAD refs/heads/prod
        r="${r%.git}"
        printf '[submodule "%s"]\n' "$r"
        printf '\tpath = %s\n' "$r"
-       printf '\turl = git://invirt.mit.edu/invirt/packages/%s.git\n' "$r"
+       printf '\turl = ../packages/%s.git\n' "$r"
     done
     echo 'EOF'