Re: [issue] repo init by ~/.ssh/config short name but can NOT repo sync

303 views
Skip to first unread message

Magnus Bäck

unread,
May 20, 2014, 1:45:55 AM5/20/14
to repo-d...@googlegroups.com, tmc...@gmail.com
On Tuesday, May 20, 2014 at 04:57 CEST,
"tmc...@gmail.com" <tmc...@gmail.com> wrote:

> i have trouble above issue
>
> at first, manifest use fetch=".." path
> i fail to repo sync, when repo init by ~/.ssh/config short name, like
> "myhost:platform/manifest"

This needs to be myhost/platform/manifest.

> and, i try to repo init directly "ssh://localhost/platform/manifest"
> that repo sync is ok

I think the misplaced colon is the culprit, but otherwise, what does
"fail to repo sync" mean, exactly? Please paste the error message or
whatever describes the problem best.

--
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com | Sony Mobile Communications

tmc...@gmail.com

unread,
May 20, 2014, 3:23:42 AM5/20/14
to repo-d...@googlegroups.com, tmc...@gmail.com
No, "myhost/platform/manifest" is wrong

$ cat ~/.ssh/config
Host g2user1
    HostName localhost
    Port 29418
    User user1
    IdentityFile ~/.ssh/user1

$ git clone g2user1:git-repo
Cloning into 'git-repo'...
remote: Counting objects: 2866, done
remote: Finding sources: 100% (2866/2866)
remote: Total 2866 (delta 1519), reused 2866 (delta 1519)
Receiving objects: 100% (2866/2866), 2.40 MiB, done.
Resolving deltas: 100% (1519/1519), done.

$ git clone g2user1/git-repo
fatal: repository 'g2user1/git-repo' does not exist

And,  after i use "$ repo init -u g2user1:repo/manifest --repo-url=g2user1:git-repo"

$ repo sync
Fetching project repo/build
fatal: Project not found: repo/repo/build
fatal: The remote end hung up unexpectedly
^Caborted by user


在 2014年5月20日星期二UTC+8下午1时45分55秒,Magnus Bäck写道:

Magnus Bäck

unread,
May 20, 2014, 3:55:07 AM5/20/14
to repo-d...@googlegroups.com, tmc...@gmail.com
On Tuesday, May 20, 2014 at 09:23 CEST,
"tmc...@gmail.com" <tmc...@gmail.com> wrote:

> No, "myhost/platform/manifest" is wrong

Correct, if you don't prefix it with ssh://.

> $ cat ~/.ssh/config
> Host g2user1
> HostName localhost
> Port 29418
> User user1
> IdentityFile ~/.ssh/user1
>
> $ git clone g2user1:git-repo
> Cloning into 'git-repo'...
> remote: Counting objects: 2866, done
> remote: Finding sources: 100% (2866/2866)
> remote: Total 2866 (delta 1519), reused 2866 (delta 1519)
> Receiving objects: 100% (2866/2866), 2.40 MiB, done.
> Resolving deltas: 100% (1519/1519), done.
>
> $ git clone g2user1/git-repo
> fatal: repository 'g2user1/git-repo' does not exist

This is because it's interpreted as a local path. Prefix it with ssh://
to remove the ambiguity.

[...]

唐木村

unread,
May 22, 2014, 7:05:49 AM5/22/14
to repo-d...@googlegroups.com

how about my original issue ???

repo sync fail by repo init with ssh alias name ...

thanks.

Magnus Bäck

unread,
May 22, 2014, 3:35:27 PM5/22/14
to repo-d...@googlegroups.com, 唐木村
On Thursday, May 22, 2014 at 13:05 CEST,
唐木村 <tmc...@gmail.com> wrote:

> how about my original issue ???
>
> repo sync fail by repo init with ssh alias name ...

I thought that's what we've been discussing. Use
ssh://shortname/platform/manifest, not shortname:platform/manifest.
Reply all
Reply to author
Forward
0 new messages