mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-11 12:07:05 +00:00
`cloneAndPrintGitGraph` clones a git repository, and generates a Git object graph for that repository. This can be run as follows: ``` yarn backend; node bin/cloneAndPrintGitGraph sourcecred example-git ``` This commit also adds two utility modules: * `cloneAndLoadRepository` , which clones a Git repository to a tmpdir, parses the `Repository` data out, and then cleans up. * `cloneGitGraph`, which calls `cloneAndLoadRepository` and `createGraph` Test plan: These don't fit well into our CI, because they require network access to clone repositories from GitHub. I verified that the functions work via the demo script above.