]> khamidou — GitHub mirrors - arcanist.git/commit
Fix arc patch in git-svn repos
authorNick Harper <nharper@fb.com>
Fri, 27 Jan 2012 02:36:43 +0000 (18:36 -0800)
committerNick Harper <nharper@fb.com>
Fri, 27 Jan 2012 18:31:52 +0000 (10:31 -0800)
commit975b541d2652b157029251071aeb976a7a237b59
treea0ca81ed7884e6f7e16413f8e6aac89793aad6c6
parent02f111ba0bea197fe086ab80be341745bca5af31
Fix arc patch in git-svn repos

Summary:
Check that the base revision is a valid git ref before trying to create a branch
starting at that rev. When arc patch is used in a git repo using the git-svn
bridge, the base reversion is a uri for the svn rev, not a git ref.

Test Plan:
run arc patch on a git-svn repo, run it on a pure git repo, and verify it works
for both

Reviewers: epriestley, btrahan

CC: jungejason, aran, epriestley
Differential Revision: https://secure.phabricator.com/D1505
src/workflow/patch/ArcanistPatchWorkflow.php