DGA-MI-SSI / YaCo

YaCo is an Hex-Rays IDA plugin. When enabled, multiple users can work simultaneously on the same binary. Any modification done by any user is synchronized through git version control.
GNU General Public License v3.0
313 stars 36 forks source link

initialization of new repo does not work on linux #53

Open trou opened 5 years ago

trou commented 5 years ago

Hello, with release 2.6, if I try to create a new repo on linux with ssh://git@server:path.git as repo URL, init fails with:

2018-11-15 16:11:06 repo: Repo created
2018-11-15 16:11:08 git: error unable to upload master to origin:master: malformed URL 'ssh://git@server:path.git'
2018-11-15 16:11:08 git: error unable to get reference from origin/master: no reference found for shorthand 'origin/master'
2018-11-15 16:11:08 repo: warning Master and origin/master does not point to same commit, please update your master
2018-11-15 16:11:08 repo: Current IDB filename is missing _local suffix

if I try with repo url git@server:path.git, I get an SSH agent prompt (so it's working), but then:

2018-11-15 16:05:44 git: error unable to upload master to origin:master: ERROR: Repository not found.

2018-11-15 16:05:44 git: error unable to get reference from origin/master: no reference found for shorthand 'origin/master'
2018-11-15 16:05:44 repo: warning Master and origin/master does not point to same commit, please update your master
2018-11-15 16:05:44 repo: Current IDB filename is missing _local suffix

and a local repository with name git@server:path.git is created.

Any idea ?

bamiaux commented 5 years ago

Is your remote repository initialized with at least one commit ? Maybe it doesn't work when the remote repo is empty. You can initialize it manually with git, just add the idb, create a commit, set your remote as origin, push once and ensure origin/master point to something. Then make sure your ssh-agent is visible to IDA, and your ssh client is not using .ssh/config