Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Buildout recipe for fetching sources in a git repository

Project Description

This simple recipe for zc.buildout fetches data from a given repository and stores it into its part’s directory. A simple task using this could look like this:


This would store the repository under ${buildout:directory}/parts/myapp and keep it at exactly this revision, no matter what happens on the server.

The recipe has following options:

The absolute URL of the repository to be fetched
A revision/commit within this repository the environment should use.
If you want to stay up to date with a certain branch other than “master”, use this.
List of relative paths to packages to develop. Must be used together with as_egg=true.
This overrides the newest-option of the global setting for this part
Set to True if you want the checkout to be registered as a development egg in your buildout.
Name of the repository in the download-cache directory.
Follow submodules (Note that submodules are not cloned from the download cache).

Offline installation

If you want to install a part from the download-cache, this is now possible, too:

parts = myapp
download-cache = /var/cache/buildout
install-from-cache = true

recipe = sact.recipe.gitrepository
repository =

With this configuration, the recipe will look for /var/cache/buildout/repo and clone it into the local parts/ folder.

The recipe also supports an additional “cache-name” setting that lets you configure the folder name of the repository in the download cache.

Version 1.2 (2013-12-03)

  • Add a example in Buildout
  • Porting code to Python 3

Version 1.1 (2013-12-03)

  • Typos in the documentation

Version 1.0 (2013-11-28)

  • Initial version
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sact.recipe.gitrepository-1.2.tar.gz (7.4 kB) Copy SHA256 Checksum SHA256 Source Dec 3, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting