我在Ubuntu14.04,git-svn版本1.9.1 (svn 1.8.8)上。我试图克隆https://sourceforge.net/p/searchmonkey/code/HEAD/tree/,使用:
git svn clone https://svn.code.sf.net/p/searchmonkey/code -T trunk -b branches -t tags --prefix=origin/ searchmonkey-code-svngit这个过程就这样结束了:
...
r850 = 3b98c1c32c0043184313828780c02ed7c2d85a7e (refs/remotes/origin/shawno)
M searchmonkey_2_x_x/util.h
M searchmonkey_2_x_x/mainwindow.ui
M searchmonkey_2_x_x/tab.cpp
M searchmonkey_2_x_x/mapped.cpp
M searchmonkey_2_x_x/find.h
M searchmonkey_2_x_x/grep.cpp
M searchmonkey_2_x_x/matcher.cpp
M searchmonkey_2_x_x/matcher.h
M searchmonkey_2_x_x/mainwindow.cpp
r851 = b3fe25fdacad270432f1a2f7b5876b83b54d2387 (refs/remotes/origin/shawno)
Checked out HEAD:
https://svn.code.sf.net/p/searchmonkey/code/trunk r365
error closing pipe: Bad file descriptor at /usr/lib/git-core/git-svn line 0.
error closing pipe: Bad file descriptor at /usr/lib/git-core/git-svn line 0.现在,当我发布cd searchmonkey-code-svngit并发布gitk --all时,我看到最新的提交是r851,我已经重新设置了master。所以现在,情况是:
$ git svn info
Path: .
URL: https://svn.code.sf.net/p/searchmonkey/code/branches/shawno
Repository Root: https://svn.code.sf.net/p/searchmonkey/code
Repository UUID: 937bcc44-791b-0410-a411-b6e56c9656c8
Revision: 851
Node Kind: directory
Schedule: normal
Last Changed Author: shawno
Last Changed Rev: 851
Last Changed Date: 2011-05-06 04:01:08 +0200 (Fri, 06 May 2011)
$ git status
On branch master
nothing to commit, working directory clean
$ git log -1
commit b3fe25fdacad270432f1a2f7b5876b83b54d2387
Author: shawno <shawno@937bcc44-791b-0410-a411-b6e56c9656c8>
Date: Fri May 6 02:01:08 2011 +0000
minor changes before move working copy to non-system drive
git-svn-id: https://svn.code.sf.net/p/searchmonkey/code/branches/shawno@851 937bcc44-791b-0410-a411-b6e56c9656c8
$ git svn log -1
------------------------------------------------------------------------
r851 | shawno | 2011-05-06 04:01:08 +0200 (Fri, 06 May 2011) | 2 lines
minor changes before move working copy to non-system drive
------------------------------------------------------------------------..。然而,sourceforge页面说:
标签2011-05-07 shawno r852 2.0.1从未发布
..。因此,基本上,我忽略了这个项目的Sourceforge中的r852,因为git svn克隆的最后一个是r851。我试着做:
$ git svn fetch
$ git svn rebase
Current branch master is up to date.
creating empty directory: install_msi/cache.upx/tmp
creating empty directory: sm_no_gui/release
$ git svn rebase
Current branch master is up to date...。不过,最新的提交仍然是r851。
如何将缺失的r852提交放到这个git存储库中?
发布于 2017-10-18 09:58:57
啊,我想我明白了:如果我点击[r852] 2.0.1从未被释放,我就可以看到:
已删除/tag/search猴子_v2.0.1/tag/searchmonyv2.0.1文件。
..。因此,这是一个表示文件被移除的条目;否则,在https://sourceforge.net/p/searchmonkey/code/852/tree/上,branches项会说:
分支机构2011-05-06 shawno r851小更改之前,移动工作副本到非.
..。事实上,r851是最新版本-所以,一切都很好.
发布于 2017-10-18 11:51:00
SVN提交,删除标记或分支将不可见,因为提交在git-svn克隆。但是您应该看到这样的效果,因为标记或分支应该被删除,或者至少重命名为在SVN中已经删除的东西,我不是100%确定。
https://stackoverflow.com/questions/46807090
复制相似问题