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(