From d2f0ffac7d956eb5e4b68c43c344da31dfa5941e Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 22 Jul 2012 13:19:09 -0700 Subject: [PATCH] Fix ambiguous argument where a branch has the same name as a file Summary: Currently, if you have a branch named "docs" and a local file named "docs", `git show -s docs` complains because it's ambiguous. Use `--` to unambiguously mark branches as revisions, not files. Test Plan: Ran `arc branch` in a working copy with a "docs" branch and a "docs" file, got expected results. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3030 --- src/workflow/ArcanistBranchWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workflow/ArcanistBranchWorkflow.php b/src/workflow/ArcanistBranchWorkflow.php index 9d6b3a68..0bab773f 100644 --- a/src/workflow/ArcanistBranchWorkflow.php +++ b/src/workflow/ArcanistBranchWorkflow.php @@ -102,7 +102,7 @@ EOTEXT // seem to have much documentation and has no long form. It suppresses any // diff output. $futures[$branch['name']] = $repository_api->execFutureLocal( - 'show -s --format=%C %s', + 'show -s --format=%C %s --', '%H%x01%ct%x01%T%x01%s%x01%b', $branch['name']); } -- 2.43.0