Git Archive
Module to take a bare git repo, archive it, and export it as a tarball to a given path
Installation
npm install -S git-archive
Usage
Say for example you have a repo named apples
and you want to export the repo as a tarball named apples.tar.gz
in the current directory. The export archive must reference a sha1 hash
Promises
var gitArchive = var data = commit: 'c3f9bcb782bcfc0216cef5c7f68f6f86cd3bea8a' outputPath: path repoPath: '/path/to/bare/repo.git' })
Callbacks
var gitArchive = var data = commit: 'c3f9bcb782bcfc0216cef5c7f68f6f86cd3bea8a' outputPath: path repoPath: '/path/to/bare/repo.git'