Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15373947
D16456.id39582.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
977 B
Referenced Files
None
Subscribers
None
D16456.id39582.diff
View Options
diff --git a/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php b/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
@@ -406,9 +406,17 @@
$refs = array();
foreach ($commits as $commit) {
+ $epoch = $stream->getCommitDate($commit);
+
+ // If the epoch doesn't fit into a uint32, treat it as though it stores
+ // the current time. For discussion, see T11537.
+ if ($epoch > 0xFFFFFFFF) {
+ $epoch = PhabricatorTime::getNow();
+ }
+
$refs[] = id(new PhabricatorRepositoryCommitRef())
->setIdentifier($commit)
- ->setEpoch($stream->getCommitDate($commit))
+ ->setEpoch($epoch)
->setCanCloseImmediately($close_immediately)
->setParents($stream->getParents($commit));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 5:16 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7568165
Default Alt Text
D16456.id39582.diff (977 B)
Attached To
Mode
D16456: When importing Git repositories, treat out-of-range timestamps as the current time
Attached
Detach File
Event Timeline
Log In to Comment