SVN プロジェクトを Git に移行しています。SVN プロジェクトはリポジトリ内に以下の構造を持っています。
/trunk
/branches
/tags
トランクをマスター ブランチとして機能させ、他のブランチを通常の git ブランチとして機能させ、タグを git タグとして機能させたいためです。
以下のコマンドを実行しました
git svn clone --stdlayout <svn-repo-url>
そしてまた試した
git svn clone <svn-repo-url> -T trunk -b branches -t tags
上記の両方のコマンドで、次のエラーが発生します。
fatal: .git\svn\refs\remotes\origin\https;C:\Softwares\Git\index: index file open failed: Invalid argument
(in cleanup) update-index -z --index-info: command returned error: 128
W: +empty_dir: branches/<svn-repo-url>/branches
fatal: Unable to create '<my-git-working-directory>/.git\svn\refs\remotes\origin\https;C:\Softwares\Git\index.lock': Invalid argument
そして、以下のコマンドを実行すると
git svn clone --trunk=/trunk --branches=/branches --tags=/tags <svn-repo-url>
次のエラーが表示されます
svn-remote.svn: remote ref '/Users/<user-id>/AppData/Local/Programs/Git/trunk:refs/remotes/origin/trunk' must start with 'refs/'
助けてください