From: Junio C Hamano Date: Thu, 3 Sep 2009 16:42:56 +0000 (-0700) Subject: Merge branch 'maint-1.6.3' into maint X-Git-Tag: v1.6.5-rc0~1^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc29df602267b1e5783a93d6ff10909c597e5fdc;p=git.git Merge branch 'maint-1.6.3' into maint * maint-1.6.3: git-clone: add missing comma in --reference documentation git-cvsserver: no longer use deprecated 'git-subcommand' commands clone: disconnect transport after fetching --- bc29df602267b1e5783a93d6ff10909c597e5fdc diff --cc Documentation/git-clone.txt index 2c63a0fba,87c13ab13..1709a2dbd --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@@ -72,19 -72,11 +72,19 @@@ These objects may be removed by normal which automatically call `git gc --auto`. (See linkgit:git-gc[1].) If these objects are removed and were referenced by the cloned repository, then the cloned repository will become corrupt. - - ++ +Note that running `git repack` without the `-l` option in a repository +cloned with `-s` will copy objects from the source repository into a pack +in the cloned repository, removing the disk space savings of `clone -s`. +It is safe, however, to run `git gc`, which uses the `-l` option by +default. ++ +If you want to break the dependency of a repository cloned with `-s` on +its source repository, you can simply run `git repack -a` to copy all +objects from the source repository into a pack in the cloned repository. --reference :: - If the reference repository is on the local machine + If the reference repository is on the local machine, automatically setup .git/objects/info/alternates to obtain objects from the reference repository. Using an already existing repository as an alternate will