git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* defined behaviour for multiple urls for a remote
@ 2011-10-14  7:07 Sitaram Chamarty
  2011-10-14  9:36 ` Kirill Likhodedov
  0 siblings, 1 reply; 4+ messages in thread
From: Sitaram Chamarty @ 2011-10-14  7:07 UTC (permalink / raw)
  To: Git Mailing List

Hi,

What's the defined behaviour if I do this:

[remote "both"]
	url = https://code.google.com/p/gitolite/
        url = git@github.com:sitaramc/gitolite.git

I know what I'm seeing (a fetch only goes to the first URL, and does a
HEAD->FETCH_HEAD because I didn't provide a refspec line, while a push
seems to push all to both), but I was curious what the official
position is, because I couldn't find it in the docs.

-- 
Sitaram

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: defined behaviour for multiple urls for a remote
  2011-10-14  7:07 defined behaviour for multiple urls for a remote Sitaram Chamarty
@ 2011-10-14  9:36 ` Kirill Likhodedov
  2011-10-14 14:01   ` Sitaram Chamarty
  2011-10-17  3:41   ` Sitaram Chamarty
  0 siblings, 2 replies; 4+ messages in thread
From: Kirill Likhodedov @ 2011-10-14  9:36 UTC (permalink / raw)
  To: git

Sitaram Chamarty <sitaramc <at> gmail.com> writes:

> What's the defined behaviour if I do this:
> 
> [remote "both"]
> 	url = https://code.google.com/p/gitolite/
>         url = git <at> github.com:sitaramc/gitolite.git
> 
> I know what I'm seeing (a fetch only goes to the first URL, and does a
> HEAD->FETCH_HEAD because I didn't provide a refspec line, while a push
> seems to push all to both), but I was curious what the official
> position is, because I couldn't find it in the docs.

Please see the message from Linus about that: http://marc.info/?l=git&m=116231242118202&w=2

You also may check how Git understands your remotes by running
  git remote -v
It will show, where it is going to fetch from and push to.

I agree though, that documentation should be updated.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: defined behaviour for multiple urls for a remote
  2011-10-14  9:36 ` Kirill Likhodedov
@ 2011-10-14 14:01   ` Sitaram Chamarty
  2011-10-17  3:41   ` Sitaram Chamarty
  1 sibling, 0 replies; 4+ messages in thread
From: Sitaram Chamarty @ 2011-10-14 14:01 UTC (permalink / raw)
  To: Kirill Likhodedov; +Cc: git

On Fri, Oct 14, 2011 at 3:06 PM, Kirill Likhodedov
<Kirill.Likhodedov@jetbrains.com> wrote:
> Sitaram Chamarty <sitaramc <at> gmail.com> writes:
>
>> What's the defined behaviour if I do this:
>>
>> [remote "both"]
>>       url = https://code.google.com/p/gitolite/
>>         url = git <at> github.com:sitaramc/gitolite.git
>>
>> I know what I'm seeing (a fetch only goes to the first URL, and does a
>> HEAD->FETCH_HEAD because I didn't provide a refspec line, while a push
>> seems to push all to both), but I was curious what the official
>> position is, because I couldn't find it in the docs.
>
> Please see the message from Linus about that: http://marc.info/?l=git&m=116231242118202&w=2

cool; thanks!

> You also may check how Git understands your remotes by running
>  git remote -v

Aah that's very clear!

> It will show, where it is going to fetch from and push to.
>
> I agree though, that documentation should be updated.

well if it never came up once in the 5 years since Linus wrote that email... :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: defined behaviour for multiple urls for a remote
  2011-10-14  9:36 ` Kirill Likhodedov
  2011-10-14 14:01   ` Sitaram Chamarty
@ 2011-10-17  3:41   ` Sitaram Chamarty
  1 sibling, 0 replies; 4+ messages in thread
From: Sitaram Chamarty @ 2011-10-17  3:41 UTC (permalink / raw)
  To: Kirill Likhodedov; +Cc: git

On Fri, Oct 14, 2011 at 3:06 PM, Kirill Likhodedov
<Kirill.Likhodedov@jetbrains.com> wrote:
> Sitaram Chamarty <sitaramc <at> gmail.com> writes:
>
>> What's the defined behaviour if I do this:
>>
>> [remote "both"]
>>       url = https://code.google.com/p/gitolite/
>>         url = git <at> github.com:sitaramc/gitolite.git
>>
>> I know what I'm seeing (a fetch only goes to the first URL, and does a
>> HEAD->FETCH_HEAD because I didn't provide a refspec line, while a push
>> seems to push all to both), but I was curious what the official
>> position is, because I couldn't find it in the docs.
>
> Please see the message from Linus about that: http://marc.info/?l=git&m=116231242118202&w=2

cool; thanks!

> You also may check how Git understands your remotes by running
>  git remote -v

Aah that's very clear!

> It will show, where it is going to fetch from and push to.
>
> I agree though, that documentation should be updated.

well in theory yes, but now that you mention it, 'git remote -v' is sufficient.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-17  3:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14  7:07 defined behaviour for multiple urls for a remote Sitaram Chamarty
2011-10-14  9:36 ` Kirill Likhodedov
2011-10-14 14:01   ` Sitaram Chamarty
2011-10-17  3:41   ` Sitaram Chamarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).