Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15403724
D9506.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
861 B
Referenced Files
None
Subscribers
None
D9506.diff
View Options
diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php
--- a/src/repository/api/ArcanistGitAPI.php
+++ b/src/repository/api/ArcanistGitAPI.php
@@ -1202,4 +1202,9 @@
$this->execxLocal('stash pop');
}
+ protected function didReloadCommitRange() {
+ // After an amend, the symbolic head may resolve to a different commit.
+ $this->resolvedHeadCommit = null;
+ }
+
}
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -1207,6 +1207,10 @@
return false;
}
+ if ($this->getArgument('head') !== null) {
+ return false;
+ }
+
// Run this last: with --raw or --raw-command, we won't have a repository
// API.
if ($this->isHistoryImmutable()) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 4:38 AM (2 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7371990
Default Alt Text
D9506.diff (861 B)
Attached To
Mode
D9506: Dirty cache of HEAD commit after an amend/range reload
Attached
Detach File
Event Timeline
Log In to Comment