mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
Exit instead of throw from reparse.php without commits
Summary: I need to run this in `xargs`. Test Plan: $ echo 'E' | xargs -n 1 ./reparse.php --message --all Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4094
This commit is contained in:
parent
cb45ad67a3
commit
2931cbcb55
1 changed files with 4 additions and 3 deletions
|
@ -121,10 +121,11 @@ if ($all_from_repo) {
|
||||||
'repositoryID = %d %Q',
|
'repositoryID = %d %Q',
|
||||||
$repository->getID(),
|
$repository->getID(),
|
||||||
$constraint);
|
$constraint);
|
||||||
if (!$commits) {
|
|
||||||
throw new Exception("No commits have been discovered in that repository!");
|
|
||||||
}
|
|
||||||
$callsign = $repository->getCallsign();
|
$callsign = $repository->getCallsign();
|
||||||
|
if (!$commits) {
|
||||||
|
echo "No commits have been discovered in {$callsign} repository!\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$commits = array();
|
$commits = array();
|
||||||
foreach ($reparse_what as $identifier) {
|
foreach ($reparse_what as $identifier) {
|
||||||
|
|
Loading…
Reference in a new issue