Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git SVN fetch nothing occasionally

Tags:

git

git-svn

Below svn branches have been added into .git/config file.

[svn-remote "svnb02"]
        url = https://svn/repos/Project/branches/b02
        fetch = :refs/remotes/git-svn-b02
[svn-remote "svnb03"]
        url = https://svn/repos/Project/branches/b03
        fetch = :refs/remotes/git-svn-b03

But only "svnb03" can be fetched using below command:

git svn fetch -R svnb03 -r HEAD

For "svnb02", below command will return quietly without fetching anything.

git svn fetch -R svnb02 -r HEAD

Any commed will be welcome.

like image 909
Lei Avatar asked Dec 13 '25 19:12

Lei


1 Answers

git svn clone will also fail silently if your subversion repo does not have the standard layout with trunk, branches, and tags at the top level. If that is the case, restructure your repo and git svn clone should work.

like image 88
Lantern Rouge Avatar answered Dec 16 '25 10:12

Lantern Rouge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!