This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Official GCC git repository


Rafael Espindola wrote:
>>> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
>> This will put the remote branch heads in refs/remotes, you might want to
>> put them in refs/remotes/origin instead.
>>
>> $ git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/origin/*'
> 
> One small problem I have with this. When I do "git branch lto
> origin/lto" the generated config entry says:
> 
> [branch "lto"]
>         remote = origin
>         merge = refs/heads/lto
> 
> and "git pull" will fail.  Manually updating it to
> 
> [branch "lto"]
>         remote = origin
>         merge = refs/remotes/lto

Because the right one should have been

$ git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'

?

Paolo		


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]