nirvdrum / svn2git

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

svn2git --rebase failed, porcelain? #47

Open jrochkind opened 12 years ago

jrochkind commented 12 years ago

Any ideas what's going wrong here?

[rochkind@xs001 umlaut]$ svn2git --rebase
command failed:
2>&1 git status --porcelain --untracked-files=no
[rochkind@xs001 umlaut]$ git status --porcelain --untracked-files=no
error: unknown option `porcelain'
usage: git status [options] [--] <filepattern>..

Hmm, not a recent enough git version to support "--porcelain"? Is it documented what git version you need for svn2git?

Also, I'm trying a --rebase here, because I already used svn2git on this same machine... with the same version of git installed. In fact, I swear I've done a rebase succesfully before too. Not sure what's changed.

jrochkind commented 12 years ago

Ah, I figured out what changed was I upgraded svn2git from 2.1.0 to 2.1.2

Downgrade back to 2.1.0, it works again -- it still outputs git errors complaining about the "--porcelain" command, but in fact it does the "--rebase" just right anyway.

However, I still advise saying in the README what version of 'git' are required to be installed to be supported properly.

stas commented 12 years ago

Did you try upgrading git to latest stable 1.7.+?

jrochkind commented 12 years ago

Yep, that's clearly what would be required. A bit inconvenient to do on my system, would require sysadmin/ops intervention. So I just downgraded svn2git to 2.1.0, and i'm good.

I still recommend you document in the README what versions of git are required for latest svn2git.

stas commented 12 years ago

I believe this can be closed.