mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Allow blaming of empty file in Diffusion
Summary: Blame of empty call currently throws AphrontQueryParameterException. Test Plan: Blame empty file. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1734
This commit is contained in:
parent
94daf63ca5
commit
040f934adf
1 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright 2011 Facebook, Inc.
|
||||
* Copyright 2012 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -110,9 +110,12 @@ abstract class DiffusionFileContentQuery {
|
|||
$commit->getEpoch();
|
||||
}
|
||||
|
||||
$commits_data = id(new PhabricatorRepositoryCommitData())->loadAllWhere(
|
||||
'commitID IN (%Ls)',
|
||||
mpull($commits, 'getID'));
|
||||
$commits_data = array();
|
||||
if ($commits) {
|
||||
$commits_data = id(new PhabricatorRepositoryCommitData())->loadAllWhere(
|
||||
'commitID IN (%Ls)',
|
||||
mpull($commits, 'getID'));
|
||||
}
|
||||
|
||||
$phids = array();
|
||||
foreach ($commits_data as $data) {
|
||||
|
|
Loading…
Reference in a new issue