How to upgrade the SVN version used by git-svn -
i've been using git-svn , love it. switched our repo 1 requires svn version of 1.5.0 or greater. currently, i've got this:
triedsound-lm:android holmesj$ git svn --version git-svn version 1.7.3.1 (svn 1.4.4) triedsound-lm:android holmesj$ svn --version svn, version 1.6.15 (r1038135) compiled nov 29 2010, 13:32:56
so, when try dcommit, error message:
... ... repository hook failed: commit blocked start-commit hook (exit code 1) output: clients >= 1.5.0 may commit repository. upgrade instructions please see: http://twiki.corp.yahoo.com/view/subversion/subversionfaq#upgrade @ /usr/local/git/libexec/git-core/git-svn line 573
this sucks, don't want stop using git-svn. awful. it's going suck if have lump git commits 1 big svn commit.
anyone know how update svn version git-svn uses? i'm running on osx 10.5
git-svn written in perl , uses svn::core module, uses whatever version of svn library module pointing at. make git-svn use newer version of svn, update system's svn::core module... sudo cpan svn::core
might suffice. alternatively, may able replace svn libraries in /usr/lib.
i can't either of above, since don't have admin privileges on work machine. here's did overcome that. if take route, may need adjust of paths below. use ~/local/lib
, ~/local/bin
etc.
set following shell variables:
export perl_mb_opt="--install_base $home/local" export perl_mm_opt="install_base=$home/local"
then run cpan svn::core
. @ point it'll ask "would pass arguments configure?", answered --libdir=/users/sean/local/lib --prefix=/users/sean/local
. this'll build new copy of svn library, , perl bindings it, end in ~/local/lib/perl5/
.
now, in install of git (from source), git-svn this:
use lib (split(/:/, $env{gitperllib} || "/users/sean/local/lib/perl5/site_perl"));
so moved freshly installed svn module ~/local/lib/perl5/
~/local/lib/perl5/site_perl
. there couple things relocate; lib/perl5
directory should this:
(it might easier set gitperllib $home/local/lib/perl5
, move git.pm out of site_perl
)
i'm no perl guru, there's better way accomplish this. can, however, confirm works: git-svn version 1.7.3.1 (svn 1.6.12)
Comments
Post a Comment