login
Header Space

 
 

Re: Cloning empty repositories, was Re: What is the idea for bare repositories?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: Junio C Hamano <gitster@...>, Johannes Schindelin <Johannes.Schindelin@...>, Bill Lear <rael@...>, Jan Wielemaker <wielemak@...>, <git@...>
Date: Tuesday, November 13, 2007 - 6:50 am

"Shawn O. Pearce" <spearce@spearce.org> writes:


It is not.

The "git remote add" thing adds this to my .git/config:

[remote "origin"]
        url = /tmp/git1
        fetch = +refs/heads/*:refs/remotes/origin/*

While clone normally does a bit more:

[remote "origin"]
        url = /tmp/git1/.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master

So, it's really

$ git remote add origin url
$ $EDITOR .git/config    # or perhaps I missed the way to set the two
                         # options easily.

I find it so conveinient to have it for non-empty clones, it's
frustrating to have to do it by hand for empty clones.

-- 
Matthieu
-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What is the idea for bare repositories?, David Kastrup, (Mon Nov 12, 9:11 am)
Re: What is the idea for bare repositories?, Bruno Cesar Ribas, (Mon Nov 12, 9:19 am)
Re: What is the idea for bare repositories?, Johannes Schindelin, (Mon Nov 12, 9:57 am)
Re: What is the idea for bare repositories?, Jan Wielemaker, (Mon Nov 12, 12:19 pm)
Cloning empty repositories, was Re: What is the idea for bar..., Johannes Schindelin, (Mon Nov 12, 12:34 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Mon Nov 12, 1:15 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Mon Nov 12, 1:54 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Mon Nov 12, 1:30 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Mon Nov 12, 1:57 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Mon Nov 12, 2:06 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Thu Nov 15, 8:44 am)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Wed Nov 14, 4:58 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Wed Nov 14, 8:28 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Tue Nov 13, 7:19 am)
Re: Cloning empty repositories, was Re: What is the idea for..., Matthieu Moy, (Tue Nov 13, 6:50 am)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Tue Nov 13, 7:56 pm)
Re: Cloning empty repositories, was Re: What is the idea for..., Johannes Schindelin, (Mon Nov 12, 6:17 pm)
Re: What is the idea for bare repositories?, David Tweed, (Mon Nov 12, 10:20 am)
speck-geostationary