Skip to content

Commit ad6ff61

Browse files
committed
git-svn-synchronizer: make sure that 'git svn fetch' is called initially
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent ba76af7 commit ad6ff61

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

git-svn-synchronizer.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,12 @@ fi
7676
if ! test -d .git/svn || test "a$SVN_URL" != "a$(git config svn-remote.svn.url)"
7777
then
7878
# Try standard trunk/branches/tags setup first
79-
if ! git svn init -s "$SVN_URL" &&
80-
! git svn fetch &&
81-
! git rev-parse refs/remotes/trunk
82-
then
79+
git svn init -s "$SVN_URL" &&
80+
git svn fetch &&
81+
git rev-parse refs/remotes/trunk || {
8382
git svn init "$SVN_URL" &&
8483
git svn fetch
85-
fi
84+
}
8685
else
8786
git svn fetch
8887
fi

0 commit comments

Comments
 (0)