Multiple pulls from the same branch in .git/remotes/origin
- From
- Michael S. Tsirkin <mst@mellanox.co.il>
- Date
- Aug 7, 2006, 12:51 UTC
- Message-ID
- <20060807125116.GA28658@mellanox.co.il>
- In-Reply-To
- <20060727140343.GS9411@mellanox.co.il>
Hi, all! I have
> git --version
git version 1.4.2.rc3.g0d95 and I have put the following in .git/remotes/origin
>cat .git/remotes/origin
URL: ssh://mst@frodo/scm/git/linux-2.6 Pull: refs/heads/linus_master:refs/heads/origin Pull: refs/heads/linus_master:refs/heads/linus_master_branch
now I get:
>git fetch origin
error: no such remote ref refs/heads/linus_master Fetch failure: ssh://mst@frodo/scm/git/linux-2.6
However, if I remove the second line, like this:
>cat .git/remotes/origin
URL: ssh://mst@frodo/scm/git/linux-2.6 Pull: refs/heads/linus_master:refs/heads/origin
I get remote linus_master properly fetched into local origin. Two questions: 1. Isn't is possible to pull from the same remote branch into multiple local branches? 2. Even if not, isn't the error message above a bit strange? After all, the remote branch *does* exist.
Thanks,
-- MST