The command git archive --remote=git@example.com:diffusion/ABC HEAD some/path/or/file can be used to get a tar ball of certain files or folders out of a remote repository. This adds support so that this works in Phabricator.
Details
Details
- Reviewers
- None
- Group Reviewers
Blessed Reviewers
Run git archive --remote=git@example.com:diffusion/ABC commit-ish path > path.tar for example git archive --remote=git@phabricator.local:diffusion/TEST HEAD testfile > testfile.tar.
You can also just extract the file right away by piping to tar git archive --remote=git@phabricator.local:diffusion/TEST HEAD testfile | tar -x
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- upload-archive
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 1776 Build 1777: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
This is something we use at our company, but it looks like no one else has asked for it. It's a useful way to extract files or folders as an archive out of a remote repository.
For example: extracting dog.php from my local phabricator TEST repo:
Comment Actions
This is probably fine but I need to research this in more detail before I can review it.