From acb90fd9e7753e54aad8d8d70d95eb391560d388 Mon Sep 17 00:00:00 2001 From: Firehed Date: Tue, 13 Aug 2013 14:16:14 -0700 Subject: [PATCH] fixes local svn branch name detection Summary: Corrects relative vs absolute branch name when using 'arc commit' Test Plan: 'arc commit' on a release branch gave an error before making the change (change was generated from 'branches/yyy' but working copy root is 'https://xxx/branches/yyy', now it does not. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D6743 --- src/workflow/ArcanistCommitWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workflow/ArcanistCommitWorkflow.php b/src/workflow/ArcanistCommitWorkflow.php index e54ad9ce..7b0c4552 100644 --- a/src/workflow/ArcanistCommitWorkflow.php +++ b/src/workflow/ArcanistCommitWorkflow.php @@ -321,7 +321,7 @@ EOTEXT } $revision_source = idx($revision, 'branch'); - $current_source = $repository_api->getSourceControlPath(); + $current_source = $repository_api->getBranchName(); if ($revision_source != $current_source) { $confirm[] = "Revision 'D{$revision_id}: {$revision_title}' was generated from ". -- 2.43.0