From: Han-Wen Nienhuys <hanwen@xs4all.nl>
To: git@vger.kernel.org
Cc: git@vger.kernel.org
Subject: Re: Pulling from refs/remotes/ ?
Date: Thu, 24 May 2007 23:24:42 -0300 [thread overview]
Message-ID: <465648EA.8070608@xs4all.nl> (raw)
In-Reply-To: <7v3b1lvfc5.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano escreveu:
> Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
>
>> Yes, that works, thanks. Wouldn't it be more consistent with this
>> reasoning to disallow
>>
>> git pull . LOCAL-BRANCH
>>
>> too?
>
> I do not think so.
>
> If somebody else (or yourself) did:
>
> $ git pull $dir LOCAL-BRANCH
>
> (replace $dir with the `pwd` you would get in your repository),
> that would work. Why shouldn't it work for yourself?
Because
"You are treating your local repository as if it is a remote
repository somewhere else, namely, '.' (current repository)."
that was the justification for not being able to pull in a remote
branch. This justification (which I disagree with) applies to this
case as well.
I understand that we don't want people committing to
remotes, because fetches will then later fail, but other than
that, why should there be limitations on using a remote?
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
next prev parent reply other threads:[~2007-05-25 2:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 1:12 Pulling from refs/remotes/ ? Han-Wen Nienhuys
2007-05-25 1:19 ` Junio C Hamano
2007-05-25 1:35 ` Han-Wen Nienhuys
2007-05-25 1:53 ` Junio C Hamano
2007-05-25 2:24 ` Han-Wen Nienhuys [this message]
2007-05-25 3:06 ` Junio C Hamano
2007-05-26 19:47 ` Han-Wen Nienhuys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=465648EA.8070608@xs4all.nl \
--to=hanwen@xs4all.nl \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.