Re: Cloning into an existing, non-empty directory?
2011/4/23 Jonathan Nieder <jrnieder@gmail.com>:
Show 10 quoted lines
>> 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