0

I successfully executed subgit import on large old repository. Later i discovered, that there were two directories for tags: default tags and tag.

I tried to edit subgit config file according to advices in Does subgit support multiple 'branches' directories?

Currently i have tags configured the following way:'

tags = tags/*:refs/tags/*
tags = tag/*:refs/tags/tag/*

But now when i try to execute import command again, Subgit does nothing, like everything seems to be already up to date. What i did wrong or i need to run subgit import from scratch?

4

1 回答 1

1

实际上,您必须从头开始导入。你可以跑

$ subgit configure --svn-url SVN_URL repo.git

然后编辑 repo.git/subgit/config 以指定

tags = tags/*:refs/tags/*
tags = tag/*:refs/tags/tag/*

然后

$ subgit install repo.git

最后

$ subgit uninstall repo.git

停止连续同步。您还可以使用“subgit import”命令作为“subgit install”+“subgit uninstall”的快捷方式。

作为奖励,您将在 refs/svn/map 参考中保存所有 SVN 修订号。要在“git log”输出中查看修订号,您可以按照SubGit book中的建议设置 Git 客户端,或者在服务器上运行以下命令:

$ git update-ref refs/notes/commits refs/svn/map
于 2016-09-21T10:59:14.363 回答