From: epriestley Date: Sun, 22 Jul 2012 20:19:09 +0000 (-0700) Subject: Fix ambiguous argument where a branch has the same name as a file X-Git-Tag: conduit-6~192 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d2f0ffac7d956eb5e4b68c43c344da31dfa5941e;p=arcanist.git 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 --- 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']); }