Re: Cloning into an existing, non-empty directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/4/23 Jonathan Nieder <jrnieder@xxxxxxxxx>:
>> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]