summaryrefslogtreecommitdiffstats
path: root/git-clone.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-08-19 00:09:13 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-08-19 00:09:13 +0000
commitb9376927508a2401c20bdb5c5c0608797f822524 (patch)
tree6f7bc2c2e45729d7b4614b08d37a7773ddec3473 /git-clone.html
parentac34f56d4cf6a737f7d8cb56a9b57448f8d6e190 (diff)
downloadgit-htmldocs-b9376927508a2401c20bdb5c5c0608797f822524.tar.gz
Autogenerated HTML docs for v1.6.4-173-g3f189
Diffstat (limited to 'git-clone.html')
-rw-r--r--git-clone.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/git-clone.html b/git-clone.html
index e85e4d65b..9df20cbc7 100644
--- a/git-clone.html
+++ b/git-clone.html
@@ -399,6 +399,14 @@ These objects may be removed by normal git operations (such as <em>git-commit</e
which automatically call <tt>git gc --auto</tt>. (See <a href="git-gc.html">git-gc(1)</a>.)
If these objects are removed and were referenced by the cloned repository,
then the cloned repository will become corrupt.</p></div>
+<div class="para"><p>Note that running <tt>git repack</tt> without the <tt>-l</tt> option in a repository
+cloned with <tt>-s</tt> will copy objects from the source repository into a pack
+in the cloned repository, removing the disk space savings of <tt>clone -s</tt>.
+It is safe, however, to run <tt>git gc</tt>, which uses the <tt>-l</tt> option by
+default.</p></div>
+<div class="para"><p>If you want to break the dependency of a repository cloned with <tt>-s</tt> on
+its source repository, you can simply run <tt>git repack -a</tt> to copy all
+objects from the source repository into a pack in the cloned repository.</p></div>
</dd>
<dt>
--reference &lt;repository&gt;
@@ -735,7 +743,7 @@ Create a repository on the kernel.org machine that borrows from Linus
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-07-01 02:30:45 UTC
+Last updated 2009-08-19 00:08:58 UTC
</div>
</div>
</body>