Skip to content

Commit 0c45a33

Browse files
committed
git-svn-synchronizer: clean before re-trying without -s
We first try with the standard trunk/branches/tags layout, but when that fails, we re-try without that layout. Make sure that the state is clean before doing so. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c5e7b7b commit 0c45a33

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

git-svn-synchronizer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ then
7979
git svn init -s "$SVN_URL" &&
8080
git svn fetch &&
8181
git rev-parse refs/remotes/trunk || {
82+
rm -rf .git/svn &&
83+
git config --remove-section svn-remote.svn &&
8284
git svn init "$SVN_URL" &&
8385
git svn fetch
8486
}

0 commit comments

Comments
 (0)