summaryrefslogtreecommitdiff
path: root/git-clone-script
AgeCommit message (Collapse)AuthorFilesLines
2005-08-24[PATCH] Use .git/remote/origin, not .git/branches/origin.Libravatar Junio C Hamano1-3/+5
Now multi-head fetch is complete, let's migrate the default configuration for new repositories created with the "git clone" command. The original $GIT_DIR/branches is not deprecated yet, but create remotes directory by default from the templates as well. Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-08-17Make sure alternates are carried over from the original repository.Libravatar Junio C Hamano1-1/+5
When we create a cheap local clone by pointing at the object databse of the original repository, we forgot to take the alternates the original repository might have had into account. Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-08-15Add cheap local clone '-s' flag to git-clone-scriptLibravatar Junio C Hamano1-15/+26
Using the $GIT_OBJECT_DIRECTORY/info/alternates mechanism, create a new repository that borrows objects from the original repository when --shared flag is given in addition to --local. It is worth pointing out that the "cloned" repository depends on the original repository, so this should be used only when you can reasonably trust that the original repository would not disappear without your knowing. Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-07-23[PATCH] Support cloning packed repo from dumb http servers.Libravatar Junio C Hamano1-2/+11
Using the information prepared with update-server-info, a truly dumb http server can allow cloning with this client side support. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-22[PATCH] git-clone-script: store where we cloned from in .git/branches/originLibravatar Junio C Hamano1-18/+23
A bit more usability enhancement, while retaining Cogito compatibility (and fixing the "-u" flag). Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-07-13[PATCH] clone-pack and clone-script: documentation and add a missing parameter.Libravatar Junio C Hamano1-2/+10
While adding the documentation for these two commands, I noticed that the name of the program on the other end (git-upload-pack) is already almost configurable but git-clone-pack lacked command line parameter parsing to actually use anything but default, so I introduced --exec= like other remote commands while I was at it. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-11[PATCH] git-clone-script local optimization tweaksLibravatar Junio C Hamano1-6/+5
- When local optimization is used, the variable repo has already been passed through get_repo_base so there is no need to check for .git subdirectory in there. - Use cpio -l instead of "cp -l". Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-09Add "-q" flag to "git commit"Libravatar Linus Torvalds1-3/+5
Maybe you don't want the progress report.
2005-07-08Teach "git clone" about rsync sourcesLibravatar Linus Torvalds1-1/+13
That will be the normal way of cloning anonymously for a while, so let's make sure it's easy to use.
2005-07-08Make "git clone" a lot more user-friendlyLibravatar Linus Torvalds1-2/+14
This silently adds the ".git" directory component if needed, so you don't need to state it explicitly for the source. Also, it turns the source into an absolute pathname when local, so that you can use relative pathnames without losing sight of the source when we cd into the destination.
2005-07-07[PATCH] Short-circuit git-clone-pack while cloning locally (take 2).Libravatar Junio C Hamano1-1/+67
When we are cloning a repository on a local filesystem, it is faster to just create a hard linkfarm of .git/object hierarchy and copy the .git/refs files. By default, the script uses the clone-pack method, but it can be told with the -l flag to do the hard linkfarm (falling back on recursive file copy) to replicate the .git/object hierarchy. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-05Make "git clone" use the new git-clone-packLibravatar Linus Torvalds1-4/+1
2005-06-22Add "git-clone-script" thingyLibravatar Linus Torvalds1-0/+7
It's just a trivial wrapper, but it should make Jeff's kernel developer guide to git look a bit less intimidating.