且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用git-svn设置Subversion属性

更新时间:2023-12-04 08:33:46

git-svn 不支持Subversion属性。当我遇到这个问题时,通常最终会有两次结帐。



这在 git-svn BUG下的文档:


我们忽略了除svn:executable之外的所有SVN属性。任何未处理的属性记录到 $ GIT_DIR / svn /< refname> /unhandled.log



Is there a way to set subversion properties on a git repository that was created by git-svn?

In my case, I want to edit the version of svn:external, svn:ignore and svn:executable.

However, the only way to do so seems to involve a check-out with the subversion client. Is there a way to edit svn properties without having to check out the repository twice (one time for git and one time with svn for the properties)?

git-svn does not support Subversion properties. When I run into this problem, I usually end up having two checkouts.

This is mentioned in the git-svn documentation under BUGS:

We ignore all SVN properties except svn:executable. Any unhandled properties are logged to $GIT_DIR/svn/<refname>/unhandled.log