Relative paths for git-svn SVN authors file?

I cloned the SVN repository from work using git-svn. During the initial cloning, I provided the SVN authors file. When I made the initial clone, git set the authorsfile as an absolute path. However, I keep copies of this git repository on my work computer and laptop and keep 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 working computer and laptop, which means that the authors file will not be found on the working computer, where the absolute path is not valid. Will git-svn accept the relative path for authorsfile instead, so that the authors file will always be found, and can I safely run git svn rebase and git snv dcommit from any machine?

+4
source share
1 answer

When I executed the initial clone, git set the authorfile as an absolute path.

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

Thus, this will allow you to use the same authors file on your entire machine.

+6
source

Source: https://habr.com/ru/post/1345610/


All Articles