1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 06:42:41 +01:00

Stop arc from triggering bogus exceptions.

This commit is contained in:
epriestley 2011-02-05 23:32:04 -08:00
parent c44c4cf988
commit db9f629499

View file

@ -117,6 +117,7 @@ try {
$workflow->setWorkingCopy($working_copy);
}
$set_guid = false;
if ($need_conduit) {
$conduit_uri = $working_copy->getConduitURI();
if (!$conduit_uri) {
@ -147,6 +148,7 @@ try {
$workflow->setUserName($user_name);
$user_phid = idx($connection, 'userPHID');
if ($user_phid) {
$set_guid = true;
$workflow->setUserGUID($user_phid);
}
}
@ -157,7 +159,7 @@ try {
$workflow->setRepositoryAPI($repository_api);
}
if ($need_auth && !$workflow->getUserGUID()) {
if ($need_auth && !$set_guid) {
$user_name = getenv('USER');
$user_find_future = $conduit->callMethod(
'user.find',