因此,使用带有最新 BitBucket (4.8.3) 的 Subversion 镜像 (SubGit)。对 master 进行了两个更改。一种是直接制作的,另一种是通过功能分支的合并制作的。推送更改时,出现 SubGit 错误:
XC2T@B104315 MINGW64 /c/projects/repos/loct-demo (master)
$ git push
Total 0 (delta 0), reused 0 (delta 0)
remote: error: The following ref update is disallowed:
remote: error: refs/heads/master: leads to replacement of SVN branch 'trunk'
remote: error:
remote: error: You can allow branch replacements by setting svn.allowBranchReplacement = true in SubGit configuration file.
remote: Fetching revisions from SVN repository:
remote: up to date
remote: Sending commits to SVN repository:
To http://XC2T@localhost:7990/scm/loct/loct-demo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://XC2T@localhost:7990/scm/loct/loct-demo.git'
我确定我过去曾这样做过,而且效果很好。我将尝试恢复并再次执行此操作,但只是想知道其他人是否已经看到此错误并知道它的含义。
谢谢,
布拉德