Skip to content

Commit 2931cbc

Browse files
author
vrana
committed
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
1 parent cb45ad6 commit 2931cbc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/repository/reparse.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@
121121
'repositoryID = %d %Q',
122122
$repository->getID(),
123123
$constraint);
124+
$callsign = $repository->getCallsign();
124125
if (!$commits) {
125-
throw new Exception("No commits have been discovered in that repository!");
126+
echo "No commits have been discovered in {$callsign} repository!\n";
127+
exit;
126128
}
127-
$callsign = $repository->getCallsign();
128129
} else {
129130
$commits = array();
130131
foreach ($reparse_what as $identifier) {

0 commit comments

Comments
 (0)