Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relative paths for git-svn SVN authors file?

Tags:

git

svn

git-svn

I have cloned an SVN repository from work using git-svn. During the initial cloning, I provided an SVN authors file. When I did the initial clone, git set the authorsfile as an absolute path. However, I keep copies of this git repository on a work machine and a laptop, and keep the copies in sync using unison (they are not two different clones, but the same clone).

The paths to my git repository are different on the work machine and the laptop, which means that the authors file won't be found on the work machine, where the absolute path is invalid. Will git-svn accept a relative path for the authorsfile, instead, so that the authors file will always be found and I can safely run git svn rebase and git snv dcommit from either machine?

like image 390
gotgenes Avatar asked Mar 28 '11 19:03

gotgenes


1 Answers

When I did the initial clone, git set the authorsfile as an absolute path.

You can change it to a relative path. If you open .git/config file in vim or any text editor you can edit it relative to the .git folder.

By doing this this should allow you to use the same authors file in all your machine.

like image 151
yasouser Avatar answered Sep 24 '22 04:09

yasouser