非標準のSVNリポジトリをBitBucketに移動する

非標準のSVNリポジトリをBitBucketに移動する

私はこれを使ってSVNリポジトリをGit(BitBucket)に移行していますチュートリアルただし、標準の SVN レイアウトを使用していないため、少し問題があるようです。

私の SVN リポジトリは Android プロジェクトの単純なコピーです。

/svn/dirname/project/app

trunkbranchesおよびサブフォルダはありません。 はトランクに等しいtagsと言えます。project

git svn clone --trunk=/project --authors-file=authors.txt https://host/svn/dirname project
Initialised empty Git repository in /home/osboxes/GitMigration/project/.git/
Checked out HEAD:
https://host/svn/dirname/project r300

次のステップはクリーンアップのはずでしたが失敗しました。おそらくブランチがないからでしょう:

java -jar ~/svn-migration-scripts.jar clean-git
Could not retrieve the config for the key: svn-remote.svn.branches

しかし、その後失敗してしまい、どうしたらいいのか分からない

java -jar ~/svn-migration-scripts.jar sync-rebase
fatal: ambiguous argument 'remotes/trunk': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error finding tracking ref for branch master

答え1

修正されたようです。私が行ったことは次のとおりです。

  1. SVNリポジトリを標準レイアウトに再配置しました
  2. git svn clone --stdlayout --prefix='' --authors-file=authors.txt https://host/svn/dirname project

2014 年の Atlassian の問題 #2 を見つけました。Git 2.0 互換性を追加するリクエストがありました。投票数は 22 で、まだ解決されていません。パラメータを使用するヒントがありましたprefix

関連情報