svn:E000002:提交失败

eme*_*his 10 svn git wordpress version-control git-svn

我正在尝试将我的Wordpresss插件发布到他们分配给我的svn存储库中.我使用git(不是svn)所以我正在尝试使用git-svn但是当我尝试使用这些指令推送我的本地git repo时出现以下错误:

$ git svn dcommit
Committing to http://plugins.svn.wordpress.org/wp-github-pipeline/trunk ...
    A   .bowerrc
    A   composer.json
    A   composer.lock
   ...
    A   vendor/guzzle/guzzle
b3f5050cb6270c7a728a0b74ac2de50a262b3e02 doesn't exist in the repository at /usr/local/git/lib/perl5/site_perl/Git/SVN/Editor.pm line 401.
Failed to read object b3f5050cb6270c7a728a0b74ac2de50a262b3e02 at /usr/local/git/libexec/git-core/git-svn line 1011.
Run Code Online (Sandbox Code Playgroud)

我已经做了很多搜索(参见下面的"其他资源"),我理解这个问题通常是由子模块的结合使用引起的git svn.我确实有一个子模块,但我提交了文件,并.gitmodules使用git filter-branch 此处描述的删除,但问题仍然存在.所以我搜索了更多,似乎使用作曲家和/或凉亭可能会导致同样的问题.

我没有尝试vendor/从我的.gitignore中删除并承诺所有的第三方图书馆......我有预感可能有用,但即使这样做也不是一个可持续的长期解决方案.

有没有办法告诉git-svn忽略我的.gitignore并上传所有vendor/ files?.或者是否有另一种方法可以避免将所有依赖关系都归入回购?或者这是一个与我想的不同的问题?提前致谢!

更新1vendor/**从我的移除.gitignore并在我的本地存储库中提交了依赖项(但没有推送到源).但我得到了完全相同的错误!

更新2 我将所有文件复制到一个新目录,并尝试进行基本的svn提交.没有子模块.包括所有供应商/文件.我收到另一个错误:

$ svn ci -m 'Adding version 1.0 files'
Sending        trunk/.gitignore
Adding         trunk/README.md
...
Adding         trunk/vendor/wp-cli/wp-cli/utils/wp-completion.bash
Adding         trunk/wp-cli.yml
Adding         trunk/wp-github-pipeline.php
Transmitting file data .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................svn: E000002: Commit failed (details follow):
svn: E000002: Can't open file '/home/svn/repos/wp-plugins/db/transactions/1232700-rw56.txn/props': No such file or directory
Run Code Online (Sandbox Code Playgroud)

我试过svn cleanup了,同样的事情发生了.

更新3 我尝试从头开始,发生SAME错误.以下是命令的确切顺序:

$ mkdir pipeline_svn2
$ svn co http://plugins.svn.wordpress.org/wp-github-pipeline pipeline_svn2
$ cd pipeline_svn2

[ copied all files into pipeline_svn2/ ]

$ svn add trunk/*
$ svn ci -m 'Adding v1.0 files'

[ lots of these... ]
Adding         trunk/wp-github-pipeline.php
Transmitting file data ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................svn: E000002: Commit failed (details follow):
svn: E000002: Can't open file '/home/svn/repos/wp-plugins/db/transactions/1233755-rx30.txn/props': No such file or directory
Run Code Online (Sandbox Code Playgroud)

这让我觉得服务器上有些东西搞砸了.

其他资源

eme*_*his 6

我终于到底了...

在与Wordpress插件团队交谈后,他们建议我尝试使用https:协议(而不是http:):

不要使用http://plugins.svn.wordpress.org/wp-github-pipeline作为插件SVN URL,而是尝试使用https://plugins.svn.wordpress.org/wp-github-pipeline.

有时,代理和各种路由器以及其他类型的流量修改符会干扰某些人的SVN流量.使用https允许端到端加密,防止大多数这些加密流量并导致这些问题.

我做了更改,svn relocate它仍然无法正常工作,但它给出了更详细的错误消息.所以我做了一些研究,发现这篇帖子表明我的新错误可能与权限/身份验证有关.

所以在预感中,我在删除文件后重新进行身份验证~/.subversion/auth/svn.simple并做了一个全新的svn co,从头开始使用https:,然后它终于工作了!

我不确定问题是否与http - > https重定向或身份验证问题(我有两个Wordpress.org帐户)有关.