Re: Why is git clone not checking out files?

From: Bill Lear <rael@zopyra.com>
Date: 2007-01-31 06:36:50
On Tuesday, January 30, 2007 at 20:15:37 (+0100) Johannes Schindelin writes:
>On Tue, 30 Jan 2007, Bill Lear wrote:
>> On Tuesday, January 30, 2007 at 11:04:57 (-0800) Linus Torvalds writes:
>> 
>> >Anyway, it's certainly easy to fix. Bill, you can either:
>> >
>> > - just rename the "topic" branch to "master"
>> 
>> I don't think I want this.  I want to know I'm on the topic branch of 
>> that repo, anything else really makes me nervous.
>
>The name in the bare repository does not matter as much as your _local_ 
>name.

Well, being a git newbie, it kinda matters to me.  I need linearity
right now.  Anything that swerves is likely to result in me and my
project stuck in the weeds.

So, I tried a straight fetch:

% GIT_DIR=. git fetch git://source/public/project

This has one branch:

% GIT_DIR=. git branch
  topic

Then a clone of that:

% cd over_there
% git clone /repos/git/project
[...]
% cd project
% git branch
  topic

All is well exactly what I want and expect ... except:

% ls -a
.  ..  .git

No checkout was done.  I'm finding this extremely confusing.

I just want to work on the branch, and I want it identified as such,
and I want it checked out, and I want some candy.

Sorry to whine, just wish I understood this better.


Bill
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jan 31 06:38:08 2007

This archive was generated by hypermail 2.1.8 : 2007-01-31 06:41:25 EST