Page MenuHomePhabricator

Adding GitUploadArchiveWorkFlow
Needs ReviewPublic

Authored by bluehawk on Jul 18 2014, 9:03 PM.
Attached Files
Unknown Object (File)
Feb 25 2017, 9:43 PM
Unknown Object (File)
Jan 28 2017, 2:24 PM
Unknown Object (File)
Jan 20 2017, 5:05 AM
Unknown Object (File)
Jan 3 2017, 10:56 AM
Unknown Object (File)
Nov 26 2016, 2:29 AM
Unknown Object (File)
Nov 22 2016, 10:53 AM
Unknown Object (File)
Nov 9 2016, 9:03 AM
Unknown Object (File)
Nov 6 2016, 11:37 PM


Group Reviewers
Blessed Reviewers

The command git archive 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.

Test Plan

Run git archive 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

rP Phabricator
Lint Skipped
Tests Skipped
Build Status
Buildable 1776
Build 1777: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

bluehawk retitled this revision from to Adding GitUploadArchiveWorkFlow.
bluehawk updated this object.
bluehawk edited the test plan for this revision. (Show Details)

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:

undefined (205×631 px, 19 KB)

This is probably fine but I need to research this in more detail before I can review it.