8
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

`git svn` で困ったら

8
Last updated at Posted at 2016-10-06

はじめに

リポジトリをSVN→Gitをするgit svnの方法は巷に溢れているので、スムーズに移行できると思いきや案外詰まったので、回避策をメモしておきます。
同じような現象に出くわしたら、「もういい、SVNで続けるぞ!」と言われる前に参考にしてみてください。
あなたがその現場にGitを普及させるのです…!

何も起きなければ

http://qiita.com/hidekuro/items/4727715fbda8f10b6b11
の通りに進めれば大丈夫だと思います。

残念、Unable to open repository ちゃんでした

エラー例
Can't create session: Unable to connect to a repository at URL '<repository>': Unable to open repository: '<repository>'

file://でリポジトリパスを指定していると起こることがあるようです。
http://d.hatena.ne.jp/naga_sawa/20101114/1289709803
に従って、svnserveでサーバを立てて再度トライしてみましょう。

残念、unable to map ちゃんでした

エラー例
4 [main] perl 14600 child_info_fork::abort: unable ot map C:\Program Files\Git\usr\bin\msys-svn_subr-1.0.dll, Win32 error 1114

なんとGit for Windowsの64bit版を使っていると遭遇するようです。
http://stackoverflow.com/questions/36191822/git-svn-clone-failed
昔のバージョンの話みたいに見えますが、今(2.9.2.windows.1)でも起きました。
Windowsマシンを捨ててもいいですが、StackOverFlowの言う通り32bit版で git svn init -sから再チャレンジするのが平和な解決策かと思います。
とはいえ、このためだけに64bit版をアンインストールしたくはないと思うので、Git for Windowsから32bit版のtar(Git-x.x.x-32-bit.tar.bz2)をDLして解凍して使うのがよろしいかと。
解凍はGitBash(64bit)を開いて下記コマンドでどうぞ。
tar xjf Git-x.x.x-32-bit.tar.bz2

8
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?