From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Per Cederqvist" Subject: Re: Confusing error message from "git pull" when upstream repo no longer exists Date: Tue, 29 Jun 2010 13:14:37 +0200 Organization: Opera Mini Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed delsp=yes Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: =?utf-8?Q?Santi_B=C3=A9jar?= X-From: git-owner@vger.kernel.org Tue Jun 29 13:14:59 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTYmH-0005jR-4k for gcvg-git-2@lo.gmane.org; Tue, 29 Jun 2010 13:14:57 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755563Ab0F2LOu convert rfc822-to-quoted-printable (ORCPT ); Tue, 29 Jun 2010 07:14:50 -0400 Received: from smtp.opera.com ([213.236.208.81]:51658 "EHLO smtp.opera.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755232Ab0F2LOt convert rfc822-to-8bit (ORCPT ); Tue, 29 Jun 2010 07:14:49 -0400 Received: from centurion (046-tdc.opera.com [213.236.208.46] (may be forged)) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o5TBEdm7024516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 29 Jun 2010 11:14:43 GMT In-Reply-To: User-Agent: Opera Mail/10.11 (Linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Tue, 29 Jun 2010 12:55:29 +0200, Santi B=C3=A9jar wrote: > On Tue, Jun 29, 2010 at 12:33 PM, Per Cederqvist =20 > wrote: >> When running "git pull", I get this error message: >> >> fatal: /usr/local/libexec/git-core/git-pull cannot be used withou= t 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 chec= k > 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 --=20 Per Cederqvist, cederp@opera.com