Page MenuHomePhabricator

D17136.id41211.diff
No OneTemporary

D17136.id41211.diff

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
@@ -414,6 +414,13 @@
$epoch = PhabricatorTime::getNow();
}
+ // If the epoch is not present at all, treat it as though it stores the
+ // value "0". For discussion, see T12062. This behavior is consistent
+ // with the behavior of "git show".
+ if (!strlen($epoch)) {
+ $epoch = 0;
+ }
+
$refs[] = id(new PhabricatorRepositoryCommitRef())
->setIdentifier($commit)
->setEpoch($epoch)

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 2, 10:23 PM (1 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707310
Default Alt Text
D17136.id41211.diff (790 B)

Event Timeline