Relative paths for git-svn SVN authors file?

醉酒当歌 提交于 2019-12-23 12:59:20

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/5464343/relative-paths-for-git-svn-svn-authors-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!