git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Lederhofer <matled@gmx.net>
To: Pelle Svensson <pelle2004@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git-pull can't be used without URL - Has worked before
Date: Fri, 16 Mar 2007 23:48:42 +0100	[thread overview]
Message-ID: <20070316224842.GA20775@moooo.ath.cx> (raw)
In-Reply-To: <6bb9c1030703160324u17d49b85s754ac8358f633bde@mail.gmail.com>

Pelle Svensson <pelle2004@gmail.com> wrote:
> Did a setup of a new git-kernel, but this time git-pull can't be used 
> without
> full URL. What should I do.

git pull [<remote>] uses the first branch of 'remote' if there is no
special branch.name.{merge,remote} configuration.  But git clone will
setup remote.origin.fetch = +refs/heads/*:refs/remotes/origin/* which
uses wildcards and isn't used as 'first branch'.  You can add another
remote.origin.fetch line before this one in .git/config with

    fetch = +refs/heads/master:refs/remotes/origin/master

which worked for me.

      parent reply	other threads:[~2007-03-16 22:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-16 10:24 git-pull can't be used without URL - Has worked before Pelle Svensson
2007-03-16 11:51 ` Paolo Bonzini
2007-03-16 11:52 ` Paolo Bonzini
2007-03-16 22:48 ` Matthias Lederhofer [this message]

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=20070316224842.GA20775@moooo.ath.cx \
    --to=matled@gmx.net \
    --cc=git@vger.kernel.org \
    --cc=pelle2004@gmail.com \
    /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 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).