]> git.ipfire.org Git - thirdparty/git.git/commit
git-clone: Keep remote names when cloning unless explicitly told not to.
authorAndreas Ericsson <exon@op5.se>
Thu, 10 Nov 2005 11:58:08 +0000 (12:58 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 11 Nov 2005 09:34:26 +0000 (01:34 -0800)
commit0879aa28708dcdfa255fff631781e5178755498e
tree3b8f42543c1d6846edd2b005f99609d202ac0a96
parent0867b0125a7b0ed02c7850486393c56ae8a719e3
git-clone: Keep remote names when cloning unless explicitly told not to.

With this patch the following commands all clone into the local directory
"repo". If repo exists, it will still barf.

git-clone git://host.xz/repo.git
git-clone /path/to/repo/.git
git-clone host.xz:repo.git

I ended up doing the same source-to-target sed'ing for all our company
projects, so it was easier to add it directly to git-clone.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-clone.txt
git-clone.sh