Re: Why is git clone not checking out files?

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

 



On Tuesday, January 30, 2007 at 13:22:37 (-0500) Shawn O. Pearce writes:
>Bill Lear <rael@xxxxxxxxxx> wrote:
>> Ok, well, I certainly did not issue git clone --bare, it was just a
>> plain ol' clone:
>> 
>> % git clone /repos/git/project
>> 
>> and no checkout ensued.  Can I fix this somehow?  I've tried the clone
>> several times with no success.  Is there anything I can check in the
>> source repo (the above /repos/git/project) to see why it would not be
>> working?
>
>I've seen this happen if HEAD in the source repository does not point
>at a branch, or points at a commit which doesn't exist.  Though I
>usually also see an error about how HEAD isn't a valid object name...

Hmm.

% cd /repos/git/project
% ls
branches  description  HEAD   info     refs
config    FETCH_HEAD   hooks  objects  remotes
% cat HEAD
ref: refs/heads/master
% cat FETCH_HEAD
2ed7b6f672963bab4bad713a71967f683fe01163                branch 'topic' of git://source/public/project
2ed7b6f672963bab4bad713a71967f683fe01163        not-for-merge   tag 'fbdev_ref_1' of git://source/public/project

This repository was created like this:

% mkdir /repos/git/project
% cd /repos/git/project
% git --bare init-db --shared
% GIT_DIR=. git fetch git://xiphi/public/project topic:topic


Bill
-
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]