git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Confusing error message from "git pull" when upstream repo no longer exists
@ 2010-06-29 10:33 Per Cederqvist
  2010-06-29 10:55 ` Santi Béjar
  0 siblings, 1 reply; 3+ messages in thread
From: Per Cederqvist @ 2010-06-29 10:33 UTC (permalink / raw)
  To: git; +Cc: cederp

When running "git pull", I get this error message:

     fatal: /usr/local/libexec/git-core/git-pull cannot be used without a  
working tree.

"git fetch" gives me a much clearer error message:

     fatal: '/var/git/project.git' does not appear to be a git repository
     fatal: The remote end hung up unexpectedly

/var/git/project.git does no longer exist on the origin server, so I
understand why the commands fail.  I think "git pull" should have a
less confusing error message, though.

     /ceder
-- 
Per Cederqvist, cederp@opera.com

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

* Re: Confusing error message from "git pull" when upstream repo no  longer exists
  2010-06-29 10:33 Confusing error message from "git pull" when upstream repo no longer exists Per Cederqvist
@ 2010-06-29 10:55 ` Santi Béjar
  2010-06-29 11:14   ` Per Cederqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Santi Béjar @ 2010-06-29 10:55 UTC (permalink / raw)
  To: Per Cederqvist; +Cc: git

On Tue, Jun 29, 2010 at 12:33 PM, Per Cederqvist <cederp@opera.com> wrote:
> When running "git pull", I get this error message:
>
>    fatal: /usr/local/libexec/git-core/git-pull cannot be used without a
> working tree.

This error message is shown when you try to pull in a bare repository
(without a working tree). It seems you don't have a working tree, but
you have a repository, so you can still fetch. (the working tree check
is done before the fetch).

HTH,
Santi

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

* Re: Confusing error message from "git pull" when upstream repo no longer exists
  2010-06-29 10:55 ` Santi Béjar
@ 2010-06-29 11:14   ` Per Cederqvist
  0 siblings, 0 replies; 3+ messages in thread
From: Per Cederqvist @ 2010-06-29 11:14 UTC (permalink / raw)
  To: Santi Béjar; +Cc: git

On Tue, 29 Jun 2010 12:55:29 +0200, Santi Béjar <santi@agolina.net> wrote:

> On Tue, Jun 29, 2010 at 12:33 PM, Per Cederqvist <cederp@opera.com>  
> wrote:
>> When running "git pull", I get this error message:
>>
>>    fatal: /usr/local/libexec/git-core/git-pull cannot be used without a
>> working tree.
>
> This error message is shown when you try to pull in a bare repository
> (without a working tree). It seems you don't have a working tree, but
> you have a repository, so you can still fetch. (the working tree check
> is done before the fetch).
>
> HTH,
> Santi

Oh. You are correct. I was in a bare repository, so I guess the message
is good after all. Sorry for my mistaken report.

     /ceder
-- 
Per Cederqvist, cederp@opera.com

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

end of thread, other threads:[~2010-06-29 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 10:33 Confusing error message from "git pull" when upstream repo no longer exists Per Cederqvist
2010-06-29 10:55 ` Santi Béjar
2010-06-29 11:14   ` Per Cederqvist

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).