Page MenuHomePhabricator

D14033.id33927.diff
No OneTemporary

D14033.id33927.diff

diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -2667,11 +2667,19 @@
pht('PUSH STAGING'),
pht('Pushing changes to staging area...'));
- $err = phutil_passthru(
- 'git push --no-verify -- %s %s:refs/tags/%s',
- $staging_uri,
- $commit,
- $tag);
+ if (version_compare($api->getGitVersion(), '1.8.2', '>=')) {
+ $err = phutil_passthru(
+ 'git push --no-verify -- %s %s:refs/tags/%s',
+ $staging_uri,
+ $commit,
+ $tag);
+ } else {
+ $err = phutil_passthru(
+ 'git push -- %s %s:refs/tags/%s',
+ $staging_uri,
+ $commit,
+ $tag);
+ }
if ($err) {
$this->writeWarn(

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 15, 8:19 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7703220
Default Alt Text
D14033.id33927.diff (847 B)

Event Timeline