]> khamidou — GitHub mirrors - arcanist.git/commit
Fix `arc diff --raw` when run outside a repository
authorepriestley <git@epriestley.com>
Fri, 16 May 2014 02:03:29 +0000 (19:03 -0700)
committerepriestley <git@epriestley.com>
Fri, 16 May 2014 02:03:29 +0000 (19:03 -0700)
commit75cb3cf35819661d4c1abcee1e9a71c46b9cc2c8
tree4c83f2214c9436d44a6ac311ce5edea0a92e76b2
parent6c6035d04b6cd877f6fade9a04b387cdd5f88d79
Fix `arc diff --raw` when run outside a repository

Summary: Fixes T5071. If you run `arc diff --raw` from some arbitrary, non-repository directory we incorrectly try to read information out of the working copy. Even if this information is available, `arc diff --raw` should not assume it's accurate (there's no guarantee the diff comes from the working copy).

Test Plan: Ran `arc diff --raw` in an arbitrary directory.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5071

Differential Revision: https://secure.phabricator.com/D9142
src/workflow/ArcanistDiffWorkflow.php