Permalink
Browse files

Fix for when mirror isn't toplevel.

Now we have repos/mirror/etudes/somefolder.
  • Loading branch information...
1 parent ec1d65c commit 66b2d02361ef69ca7040c366c59b7a96c5d7c7f2 Git User committed Sep 7, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 mirror-svn-git
View
3 mirror-svn-git
@@ -43,8 +43,9 @@ popd
git clone --bare $gitsvn_basename $git_basename
pushd $git_basename
# Add in an origin link
+relative_path=`basename $gitsvn_basename`
echo -n "[remote \"origin\"]
- url = ../$gitsvn_basename
+ url = ../$relative_path
fetch = +refs/remotes/*:refs/heads/*
" >> config
# Make trunk the default branch

0 comments on commit 66b2d02

Please sign in to comment.