I have a large svn repository and im trying to migrate to git. Now im struggling using --ignore-paths with git-svn to filter some paths.
I have this repository: https://svn.host.co.mz/svn/sistemas Then i have a project named project1 and inside project1 i have two branches. Inside development i have a directory named archive, dev_demo and sprints.
project1
- branches/
- development
- production
project2
- branches/
- development -archive -sprints -dev_demo
- production
I want to clone and fetch only sprints and dev_demo inside development but it always comes with archive path.
I have tried to implement the below .git/config but it´s not working.
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[svn-remote "svn"]
url = https://svn.host.co.mz/svn/sistemas/project1
fetch = :refs/remotes/origin/project1
ignore-paths = ^branches/development/(archive|[^/]*/archive)/
I want a regex that matches with the structure of my paths and exlude archive directory.
^branches/development/archive
?