Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2681181
D25738.1734638255.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25738.1734638255.diff
View Options
diff --git a/src/applications/diffusion/query/DiffusionRenameHistoryQuery.php b/src/applications/diffusion/query/DiffusionRenameHistoryQuery.php
--- a/src/applications/diffusion/query/DiffusionRenameHistoryQuery.php
+++ b/src/applications/diffusion/query/DiffusionRenameHistoryQuery.php
@@ -36,9 +36,11 @@
$conn_r = id(new PhabricatorRepository())->establishConnection('r');
$commit_id = $this->loadCommitId($this->oldCommit);
- $old_commit_sequence = $this->loadCommitSequence($commit_id);
-
$path = '/'.$drequest->getPath();
+ $old_commit_sequence = $this->loadCommitSequence($commit_id);
+ if ($old_commit_sequence === null) {
+ return $path;
+ }
$commit_id = $this->loadCommitId($drequest->getCommit());
do {
@@ -97,7 +99,10 @@
PhabricatorRepository::TABLE_PATHCHANGE,
$this->request->getRepository()->getID(),
$commit_id);
- return reset($path_change);
+ if ($path_change !== null) {
+ return reset($path_change);
+ }
+ return null;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 19:57 (4 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015465
Default Alt Text
D25738.1734638255.diff (1 KB)
Attached To
Mode
D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing
Attached
Detach File
Event Timeline
Log In to Comment