Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2934077
D25738.1737783345.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.1737783345.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
Sat, Jan 25, 05:35 (5 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1148396
Default Alt Text
D25738.1737783345.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