タイトル

執筆:2024.04.01
編集:2024.04.01


結論
clone時に
--no-metadata
を指定したせいです

相互運用する場合はこのオプションは指定してはいけません



$ git svn dcommit

Unable to determine upstream SVN information from HEAD history.
Perhaps the repository is empty. at /usr/libexec/git-core/git-svn line 859.

$ git svn dcommit

Unable to determine upstream SVN information from HEAD history.
Perhaps the repository is empty. at C:/Program Files/Git/mingw64/libexec/git-core\git-svn line 916.

$ git config --list --local | grep svn

登録間違っていないし、なんだろうこのエラー

選択肢は2個

(1)このままgit運用する

このままgit運用に切り替えてsvn捨ててしまえば問題なし

(2)svnに直接書き込む
  1. gitで空ブランチに切り替える
  2. svn取り込んでチェックアウトする
  3. gitで同じリビジョンに強制上書き
    git checkout [SHA] -f
  4. git checkout master
  5. svn commit
今回はいろいろ削除とか追加の変更があるので
git svn dcommit させてほしい・・・

困った・・・

» 続きを読む