Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15384580
D14033.id33927.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
847 B
Referenced Files
None
Subscribers
None
D14033.id33927.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14033: staging repo compatibility for older git versions
Attached
Detach File
Event Timeline
Log In to Comment