summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-02-14 20:06:55 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-02-14 20:06:55 +0100
commit1a35a4a04228b6bf210b1fd7f2b667dc8a06e677 (patch)
treeeb8ed465fc7c89bea287f64be12be3ddb6ff0413
parentb0c8f5c2e177a7efd9cb9e702edbea043e4adddf (diff)
downloadblog-1a35a4a04228b6bf210b1fd7f2b667dc8a06e677.zip
blog-1a35a4a04228b6bf210b1fd7f2b667dc8a06e677.tar.gz
blog-1a35a4a04228b6bf210b1fd7f2b667dc8a06e677.tar.bz2
git bundle: fixes
-rw-r--r--content/git-bundle-hosting.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/git-bundle-hosting.rst b/content/git-bundle-hosting.rst
index 2431c46..9438f21 100644
--- a/content/git-bundle-hosting.rst
+++ b/content/git-bundle-hosting.rst
@@ -8,14 +8,14 @@
Cloning large repositories can result in quite some load on the server side. Depending on the server specs, the server may run out of RAM or the CPU load increases heavily. In my case, the limiting factor is the CPU. Too much load can even result in fatal errors that make it impossible to freshly clone a repository.
-A possible solution is the use of bundles. Git can package a certain revision in an archive. The client can fetch the bundle and set up a clone locally based on the bundle. The `Git documentation <https://git-scm.com/docs/git-bundle>`_ describes how this works. The server then has the only task of serving the bundle which takes almost no load. When the client has set up the clone with the bundle, subsequent pull or fetch requests will take a lot less server load because the server only needs to handle the diff between the revision archived in the bundle and the revision that currently gets fetched.
+A possible solution is the use of bundles. Git can package a certain revision in an archive. The client can fetch the bundle and set up a clone locally based on the bundle. The `Git documentation <https://git-scm.com/docs/git-bundle>`_ describes how this works. The server then has the only task of providing the bundle which requires almost no load. When the client has set up the clone with the bundle, subsequent pull or fetch requests will take a lot less server load because the server only needs to handle the diff between the revision archived in the bundle and the revision that currently is fetched.
-The Linux kernel project uses bundles on their Git hosting servers and `they recommend to directly get the bundle with wget if you have connection problems <https://www.kernel.org/cloning-linux-from-a-bundle.html>`_. The `repo tool <https://code.google.com/p/git-repo/>`_, which manages the various git repositories of Android-based operating systems, by default even expects that a bundle with the name clone.bundle is present in every repository on the server during the initial sync. The repo tool automatically fetches the bundles and uses them to set up the individual Git repositories.
+The Linux kernel project uses bundles on their Git hosting servers and `they recommend to directly get the bundle with wget if you have connection problems <https://www.kernel.org/cloning-linux-from-a-bundle.html>`_. The `repo tool <https://code.google.com/p/git-repo/>`_, which manages the various Git repositories of Android-based operating systems, by default even expects that a bundle with the name clone.bundle is present in every repository on the server during the initial sync. The repo tool automatically fetches the bundles and uses them to set up the individual Git repositories.
Creating bundles on the server
##############################
-Bundles are easily created inside a git repository with the command ``git bundle create clone.bundle $REVISON``. ``$REVISION`` can be a branch or a tag. In case you have a lot of git repositories and if all of them are in the same directory, running the following command in the parent directory may be helpful to create bundles in all of them:
+Bundles are easily created inside a Git repository with the command ``git bundle create clone.bundle $REVISON``. ``$REVISION`` can be a branch or a tag. In case you have a lot of Git repositories and if all of them are in the same directory, running the following command in the parent directory may be helpful to create bundles in all of them:
.. code-block:: shell
@@ -33,7 +33,7 @@ First, Apache needs to be told where it can find the bundles:
AliasMatch ^/(.*).git/clone.bundle /var/lib/gitolite3/repositories/$1.git/clone.bundle
AliasMatch ^/(.*)/clone.bundle /var/lib/gitolite3/repositories/$1.git/clone.bundle
-These directives make sure that regardless if the URL contains the ``.git`` suffix Apache finds the corresponding ``*.git`` folder.
+These directives make sure that regardless of whether the URL contains the ``.git`` suffix, Apache finds the corresponding ``*.git`` folder.
Then clients need to be allowed to access the bundles in the git repositories:
@@ -46,6 +46,6 @@ Then clients need to be allowed to access the bundles in the git repositories:
</FilesMatch>
</Directory>
-This makes sure that only files named clone.bundle are accessible.
+This ensures that only files named clone.bundle are accessible.
I hope that having bundles available causes a lot less issues when syncing with my `Replicant 6.0 <https://blog.replicant.us/2016/08/replicant-6-early-work-upstream-work-and-f-droid-issue/>`_ repositories or with my `Replicant 4.2 mirror <https://replicantmirror.fossencdi.org/>`_.