我使用subgit作为我们团队的svn镜像。对于对svn执行的所有提交(在git上显示为相同的“作者”),用户映射都是正确的,但对git的提交在svn日志中显示为不同的"Author“。
我按照说明并在配置文件中启用了以下属性:
[core]
shared = true
authorsFile = subgit/authors.txt
[auth "default"]
passwords = subgit/passwd发布于 2014-07-04 01:07:45
算出来了。
我必须启用“修改前更改”挂钩,以允许svn:作者更改。
步骤:
#!/bin/bash
#Sample PRE-REV-CHANGE HOOK
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"
# Allowing user to modify author on revisions
if [ "$PROPNAME" = "svn:author" ]; then exit 0; fi
echo "Enabling subgit to chnage author name for git-svn user mapping" >&2
exit 1https://stackoverflow.com/questions/24563787
复制相似问题