在 ubuntu 14.04 x86_64 環境下將早期使用 subversion 作版本管理的程式專案移轉到 git 時碰到的錯誤訊息


1
2
3
4
5
6
7
$ git svn clone --username=bestlong --authors-file=authors.txt https://xxx.yyy.zzz/svn/repo-name repo-name
...省略
creating empty directory: trunk/logs
creating empty directory: trunk/templates_c
error closing pipe: Bad file descriptor at /usr/lib/git-core/git-svn line 0.
error closing pipe: Bad file descriptor at /usr/lib/git-core/git-svn line 0.
$

查了網路上有很多資訊,有提到很多可能因素,例如:記憶體不足,或者是 ulimit 的限制…等,但怎麼調整都沒有排除掉錯誤。直到看到有人提到 git version, svn version, 32 bit or 64 bit, Perl version 都是可能原因時,就直接找另一台 CentOS 6.6 x86_64 環境的主機跑看看,還真的就順利過關。

因為是一次性的作業,在更換環境後可以達成目的就不深入研究錯誤原因了。