Skip to content

Commit 131f27e

Browse files
committed
Fix pushToOrigin for pushing tags
1 parent a441b16 commit 131f27e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
### Bugfixes
77

8+
* GIT: Respect option ```pushToOrigin``` when pushing tag to remote
89
* GIT: Catch errors correctly when doing commit (#128 thanks grigorigoldman)
910
* SVN: Detect trunk/tag/branch directories case-insensitive (#130 thanks naugler)
1011

src/main/groovy/net/researchgate/release/GitAdapter.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class GitAdapter extends BaseScmAdapter {
9393
def tagName = tagName()
9494
exec(['git', 'tag', '-a', tagName, '-m', message], errorMessage: "Duplicate tag [$tagName]", errorPatterns: ['already exists'])
9595
if (shouldPush()) {
96-
exec(['git', 'push', '--porcelain', 'origin', tagName], errorMessage: "Failed to push tag [$tagName] to remote", errorPatterns: ['[rejected]', 'error: ', 'fatal: '])
96+
exec(['git', 'push', '--porcelain', extension.git.pushToRemote, tagName], errorMessage: "Failed to push tag [$tagName] to remote", errorPatterns: ['[rejected]', 'error: ', 'fatal: '])
9797
}
9898
}
9999

0 commit comments

Comments
 (0)