Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14077185
D19466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D19466.diff
View Options
diff --git a/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php b/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
--- a/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
+++ b/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
@@ -80,18 +80,22 @@
->save();
}
- $committer_identity = id(new PhabricatorRepositoryIdentityQuery())
- ->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withIdentityNames(array($committer))
- ->executeOne();
-
- if (!$committer_identity) {
- $committer_identity = id(new PhabricatorRepositoryIdentity())
- ->setAuthorPHID($commit->getPHID())
- ->setIdentityName($committer)
- ->setAutomaticGuessedUserPHID(
- $this->resolveUserPHID($commit, $committer))
- ->save();
+ $committer_identity = null;
+
+ if ($committer) {
+ $committer_identity = id(new PhabricatorRepositoryIdentityQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withIdentityNames(array($committer))
+ ->executeOne();
+
+ if (!$committer_identity) {
+ $committer_identity = id(new PhabricatorRepositoryIdentity())
+ ->setAuthorPHID($commit->getPHID())
+ ->setIdentityName($committer)
+ ->setAutomaticGuessedUserPHID(
+ $this->resolveUserPHID($commit, $committer))
+ ->save();
+ }
}
$data = id(new PhabricatorRepositoryCommitData())->loadOneWhere(
@@ -128,6 +132,8 @@
$this->resolveUserPHID($commit, $committer));
$data->setCommitDetail(
'committerIdentityPHID', $committer_identity->getPHID());
+
+ $commit->setCommitterIdentityPHID($committer_identity->getPHID());
}
$repository = $this->repository;
@@ -166,7 +172,6 @@
}
$commit->setAuthorIdentityPHID($author_identity->getPHID());
- $commit->setCommitterIdentityPHID($committer_identity->getPHID());
$commit->setSummary($data->getSummary());
$commit->save();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 9:52 PM (16 h, 46 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6776079
Default Alt Text
D19466.diff (2 KB)
Attached To
Mode
D19466: Prevent creation of empty repository identities
Attached
Detach File
Event Timeline
Log In to Comment