Skip to content

Commit 71d254e

Browse files
gabyxtnyblom
authored andcommitted
Notes on end slash requirement
1 parent 381be06 commit 71d254e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Just mount your SVN folder, plus another working directory where Git repository
2222
Sample usage with input mounted in /tmp and output produced in /workdir:
2323
```
2424
docker build -t svn2git .
25-
docker run --rm -it -v `pwd`/workdir:/workdir -v /var/lib/svn/project1:/tmp/svn -v `pwd`/conf:/tmp/conf svn2git /usr/local/svn2git/svn-all-fast-export --identity-map /tmp/conf/project1.authors --rules /tmp/conf/project1.rules --add-metadata --svn-branches --debug-rules --svn-ignore --empty-dirs /tmp/svn/
25+
docker run --rm -it -v `pwd`/workdir:/workdir -v /var/lib/svn/project1:/tmp/svn -v `pwd`/conf:/tmp/conf svn2git /usr/local/svn2git/svn-all-fast-export --identity-map /tmp/conf/project1.authors --rules /tmp/conf/project1.rules --add-metadata --svn-branches --debug-rules --svn-ignore --empty-dirs /tmp/svn/
2626
```
2727

2828
Building the tool
@@ -80,6 +80,10 @@ end match
8080
```
8181

8282
Creates a rule that matches paths by `REGEX` and applies some `PARAMETERS` to them. Matching groups can be created, and the values used in the parameters.
83+
You need to make sure the regex matching a SVN directory path matches also the end slash (e.g. `./`) otherwise Git fast-import will crash with an `fatal: Empty path component found in input` errors.
84+
For example, the rule `/project/trunk/.*/myFolder`, should become `/project/trunk/.*/myFolder/`.
85+
86+
8387

8488
`PARAMETERS` is any number of:
8589

0 commit comments

Comments
 (0)