Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14006560
D15693.id41285.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15693.id41285.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
@@ -28,20 +28,7 @@
public function execPassthru($pattern /* , ... */) {
$args = func_get_args();
- static $git = null;
- if ($git === null) {
- if (phutil_is_windows()) {
- // NOTE: On Windows, phutil_passthru() uses 'bypass_shell' because
- // everything goes to hell if we don't. We must provide an absolute
- // path to Git for this to work properly.
- $git = Filesystem::resolveBinary('git');
- $git = csprintf('%s', $git);
- } else {
- $git = 'git';
- }
- }
-
- $args[0] = $git.' '.$args[0];
+ $args[0] = 'git '.$args[0];
return call_user_func_array('phutil_passthru', $args);
}
@@ -159,17 +146,10 @@
$this->getBaseCommit());
}
- // NOTE: Windows escaping of "%" symbols apparently is inherently broken;
- // when passed through escapeshellarg() they are replaced with spaces.
-
- // TODO: Learn how cmd.exe works and find some clever workaround?
-
// NOTE: If we use "%x00", output is truncated in Windows.
list($info) = $this->execxLocal(
- phutil_is_windows()
- ? 'log %C --format=%C --'
- : 'log %C --format=%s --',
+ 'log %C --format=%s --',
$against,
// NOTE: "%B" is somewhat new, use "%s%n%n%b" instead.
'%H%x01%T%x01%P%x01%at%x01%an%x01%aE%x01%s%x01%s%n%n%b%x02');
@@ -599,9 +579,7 @@
$stdout = $this->getHashFromFromSVNRevisionNumber($match[1]);
} else {
list($stdout) = $this->execxLocal(
- phutil_is_windows()
- ? 'show -s --format=%C %s --'
- : 'show -s --format=%s %s --',
+ 'show -s --format=%s %s --',
'%H',
$string);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 29, 12:50 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6753614
Default Alt Text
D15693.id41285.diff (1 KB)
Attached To
Mode
D15693: Remove Windows workarounds from ArcanistGitAPI
Attached
Detach File
Event Timeline
Log In to Comment