私の設定の関連部分は次のとおりです。
$ cat .git/config
[svn-remote "svn"]
ignore-paths = ^(?:Releases|Projects|Scripts|Games|)/|^Programs/(?:Nif S\
canner|Nif Viewer|Raziel23x's Oblivion Toolset|Shader Disasm|Shader Editor)/
url = svn://svn.code.sf.net/p/oblivionworks/code
fetch = Programs/Wrye Bash:refs/remotes/svn/trunk
branches = Branches/Wrye Bash/*:refs/remotes/svn/*
tags = Tags/Wrye Bash/*:refs/remotes/svn/tags/*
[svn]
authorsfile = authors_with_emails.txt
試した:
MrD@MRSD /c/dropbox/eclipse_workspaces/python/git_svn_WB (master)
$ git svn dcommit --username MYUSERNAME
Committing to svn://svn.code.sf.net/p/oblivionworks/code/Programs/Wrye%20Bash ...
ERROR from SVN:
Authorization failed: Authorization failed
W: 083f21d9aa799b62e325b5bb348f1ee82f9d7085 and refs/remotes/svn/trunk differ, u
sing rebase:
:040000 040000 f8e70f1f4670274788def25b32bd5d7246206b7b f05b3db6f8d2ea5ff54cd040
c4ef685cdd453233 M Mopy
Current branch master is up to date.
ERROR: Not all changes have been committed into SVN, however the committed
ones (if any) seem to be successfully integrated into the working tree.
Please see the above messages for details.
ご覧のとおり、私は master にいます (ここでは、git ブランチから 1 つのコミットを選んだだけです。派手なマージなどはありません)。
2 つの質問があります。
- config で URL を微調整するにはどうすればよいですか? またはflagに何
<URL>
を渡す必要がありますか?--commit-url <URL>
何かを台無しにして、間違ったブランチでコミットしてしまうことはしたくありません (ご覧のとおり、svn レイアウトは非標準です)。 実際、私は別の変更をコミットしています。コミットメッセージを編集して追加しました:
Subject Body Signed-off-by: AUTHOR <EMAIL> # added
where
AUTHOR
は SVN 構成の名前と一致しますが、一致EMAIL
しません。著者が適切に記録されるには、これで十分ですか? 電子メールはSVN側に違いをもたらさないと思います
SVNレポを台無しにしたくないので、特に確認したいだけです。私はむしろ押しのけたいhttps
。