mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 00:42:40 +01:00
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
This commit is contained in:
parent
6c6035d04b
commit
75cb3cf358
1 changed files with 5 additions and 3 deletions
|
@ -2292,10 +2292,12 @@ EOTEXT
|
|||
'arcanistProject' => $project_id,
|
||||
);
|
||||
|
||||
if (!$this->isRawDiffSource()) {
|
||||
$repository_phid = $this->getRepositoryPHID();
|
||||
if ($repository_phid) {
|
||||
$data['repositoryPHID'] = $repository_phid;
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue