nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

svn authors errors with git #80

Open rschmitty opened 12 years ago

rschmitty commented 12 years ago

I setup an authors file in ~/.svn2git/authors and then ran the following command

svn2git https://path/to/repo/website/trunk --no-minimize-url --trunk trunk --nobranches --notags --username rick --verbose

And it errored around git config --local

Running command: git config --local svn.authorsfile ~/.svn2git/authors
error: unknown option `local'
<git config example output here>
command failed:
2>&1 git config --local svn.authorsfile ~/.svn2git/authors

Running git 1.7.1

rschmitty commented 12 years ago

Hmm actually seems its a problem with the --local flag. I took out the authors file and now it errors on this:

Running command: git config --local --get user.email
error: unknown option `local'
usage: git config [options]
<snip>
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.
command failed:
2>&1 git checkout -f master
boxerab commented 12 years ago

I am getting the same error.

boxerab commented 12 years ago

quoting from the git config documentation:

The file-option can be one of --system, --global or --file 

So there is no --local flag. This option should be removed.

boxerab commented 12 years ago

see issue #45. The error disappears when --local is removed from migration.rb, and the gem is rebuilt and installed.

purestvfx commented 11 years ago

I am getting the same error how do I get around this?

martinlindhe commented 10 years ago

Using current svn2git, you should use this syntax:

svn2git repository --authors filename.txt

as explained here: https://github.com/nirvdrum/svn2git#authors