Page MenuHomePhabricator

D10197.id24532.diff
No OneTemporary

D10197.id24532.diff

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
@@ -535,7 +535,7 @@
$stdout = $this->getHashFromFromSVNRevisionNumber($match[1]);
} else {
list($stdout) = $this->execxLocal(
- 'show -s --format=%C %s',
+ 'show -s --format=%s %s --',
'%H',
$string);
}
diff --git a/src/workflow/ArcanistBrowseWorkflow.php b/src/workflow/ArcanistBrowseWorkflow.php
--- a/src/workflow/ArcanistBrowseWorkflow.php
+++ b/src/workflow/ArcanistBrowseWorkflow.php
@@ -104,6 +104,12 @@
$commits = array();
foreach ($things as $key => $thing) {
+ if ($thing == '.') {
+ // Git resolves '.' like HEAD, but it should be interpreted to mean
+ // "the current directory". Just skip resolution and fall through.
+ continue;
+ }
+
$commit = $repository_api->getCanonicalRevisionName($thing);
if ($commit) {
$commits[$commit] = $key;

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 5, 6:18 PM (4 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7733496
Default Alt Text
D10197.id24532.diff (1 KB)

Event Timeline