Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialization of new repo does not work on linux #53

Open
trou opened this issue Nov 15, 2018 · 1 comment
Open

initialization of new repo does not work on linux #53

trou opened this issue Nov 15, 2018 · 1 comment

Comments

@trou
Copy link

trou commented Nov 15, 2018

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
Copy link
Contributor

bamiaux commented Nov 15, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants