Page MenuHomePhabricator

Adding GitUploadArchiveWorkFlow
Needs ReviewPublic

Authored by bluehawk on Jul 18 2014, 9:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 25, 6:22 AM
Unknown Object (File)
Sat, Mar 23, 9:57 PM
Unknown Object (File)
Feb 12 2024, 5:52 AM
Unknown Object (File)
Dec 20 2023, 12:00 PM
Unknown Object (File)
Dec 2 2023, 12:25 PM
Unknown Object (File)
Dec 1 2023, 6:06 AM
Unknown Object (File)
Nov 1 2023, 11:26 AM
Unknown Object (File)
Oct 28 2023, 3:43 AM

Details

Reviewers
None
Group Reviewers
Blessed Reviewers
Summary

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.

Test Plan

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

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

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.