mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Minor, move the "repair" instructions to the right place.
This commit is contained in:
parent
16c20c92fe
commit
1c1fdf0448
1 changed files with 10 additions and 10 deletions
|
@ -269,16 +269,6 @@ final class PhabricatorRepositoryPullLocalDaemon
|
|||
$target);
|
||||
|
||||
if (!$commit) {
|
||||
$callsign = $repository->getCallsign();
|
||||
|
||||
$console = PhutilConsole::getConsole();
|
||||
$console->writeErr(
|
||||
"WARNING: Repository '%s' is missing commits ('%s' is missing from ".
|
||||
"history). Run '%s' to repair the repository.\n",
|
||||
$callsign,
|
||||
$target,
|
||||
"bin/repository discover --repair {$callsign}");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -300,6 +290,16 @@ final class PhabricatorRepositoryPullLocalDaemon
|
|||
$target);
|
||||
|
||||
if (!$commit) {
|
||||
$callsign = $repository->getCallsign();
|
||||
|
||||
$console = PhutilConsole::getConsole();
|
||||
$console->writeErr(
|
||||
"WARNING: Repository '%s' is missing commits ('%s' is missing from ".
|
||||
"history). Run '%s' to repair the repository.\n",
|
||||
$callsign,
|
||||
$target,
|
||||
"bin/repository discover --repair {$callsign}");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue