From: Nguyen Thai Ngoc Duy Date: Sat, 23 Apr 2011 10:28:48 GMT Subject: Re: Cloning into an existing, non-empty directory? Message-ID: In-Reply-To: <20110423101500.GB1500@elie> 2011/4/23 Jonathan Nieder : >> 2) running `git pull` as suggested results in: >> >> fatal: /usr/lib/git-core/git-pull cannot be used without a working tree. >> >> which can be worked around by using --work-tree and --git-dir . Not >> ideal, but workeable if I accept the race condition. > > Weird.  Maybe chdir-ing into the work tree will help?  (Traditionally, > git commands tend to be run from within the work tree, so I wouldn't > be too surprised if some commands do not like being run from outside.) Does this patch help? http://article.gmane.org/gmane.comp.version-control.git/150986 -- Duy