Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Archive git repository with its submodules.

Project description

PyPI Homebrew Travis Coverage Supported Python versions Supported Python implementations

Archive repository with all its submodules.

git-archive-all [-v] [--prefix PREFIX] [--no-exclude] [--force-submodules] [--extra EXTRA1 ...] [--dry-run] [-0 | ... | -9] OUTPUT_FILE

Options:

  --version             Show program's version number and exit.

  -h, --help            Show this help message and exit.

  -v, --verbose         Enable verbose mode.

  --prefix=PREFIX       Prepend PREFIX to each filename in the archive. OUTPUT_FILE name is used by default to avoid tarbomb. You can set it to '' in order to explicitly request tarbomb.

  -C BASE_REPO          Use BASE_REPO as the main repository git working directory to archive.  Defaults to current directory when empty
  --no-exclude          Don't read .gitattributes files for patterns containing export-ignore attributes.

  --force-submodules    Force a `git submodule init && git submodule update` at each level before iterating submodules

  --extra               Include extra files to the resulting archive.

  --dry-run             Don't actually archive anything, just show what would be done.

Questions & Answers

Q: How to exclude files?
A: Mark paths you want to exclude in the .gitattributes file with the export-ignore attribute. Read more on git-scm.com.
Q: What about non-unicode filenames?
A: All filenames that particular version of Python can represent and handle are supported. Extra [en|de]coding is done where appropriate.

Support

If functional you need is missing but you’re ready to pay for it, feel free to contact me. If not, create an issue anyway, I’ll take a look as soon as I can.

Project details


Download files

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

Files for git-archive-all, version 1.20.0
Filename, size File type Python version Upload date Hashes
Filename, size git_archive_all-1.20.0-py2.py3-none-any.whl (10.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size git-archive-all-1.20.0.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page