1
我有多個存儲庫,我想從svn轉換爲git。 我嘗試編寫一個簡單的期望腳本來轉換一個回購。使用期望遷移多個存儲庫
#!/usr/bin/expect
spawn svn2git svn://svn-server/repo --username $username --verbose
expect {Password for '$username'}
send "$password\r"
他把密碼,但然後超時退出。
'expect'是這樣一個專業程序。 ssh認爲它與用戶交互。 –