mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix an issue which could prevent new repositories from being marked imported.
This commit is contained in:
parent
d0e30882a1
commit
4a6239d53c
1 changed files with 2 additions and 1 deletions
|
@ -283,10 +283,11 @@ final class PhabricatorRepositoryPullLocalDaemon
|
||||||
// Look for any commit which hasn't imported.
|
// Look for any commit which hasn't imported.
|
||||||
$unparsed_commit = queryfx_one(
|
$unparsed_commit = queryfx_one(
|
||||||
$repository->establishConnection('r'),
|
$repository->establishConnection('r'),
|
||||||
'SELECT * FROM %T WHERE repositoryID = %d AND importStatus != %d
|
'SELECT * FROM %T WHERE repositoryID = %d AND (importStatus & %d) != %d
|
||||||
LIMIT 1',
|
LIMIT 1',
|
||||||
id(new PhabricatorRepositoryCommit())->getTableName(),
|
id(new PhabricatorRepositoryCommit())->getTableName(),
|
||||||
$repository->getID(),
|
$repository->getID(),
|
||||||
|
PhabricatorRepositoryCommit::IMPORTED_ALL,
|
||||||
PhabricatorRepositoryCommit::IMPORTED_ALL);
|
PhabricatorRepositoryCommit::IMPORTED_ALL);
|
||||||
if ($unparsed_commit) {
|
if ($unparsed_commit) {
|
||||||
// We found a commit which still needs to import, so we can't clear the
|
// We found a commit which still needs to import, so we can't clear the
|
||||||
|
|
Loading…
Reference in a new issue