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~9^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bc29df602267b1e5783a93d6ff10909c597e5fdc 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 2c63a0fbae,87c13ab13e..1709a2dbd0 --- 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