From 4e81ee3a5e6099959e939892f1de85751ddf4496 Mon Sep 17 00:00:00 2001 From: Lucas SAUDON Date: Thu, 4 Jul 2024 12:06:41 +0200 Subject: [PATCH] fix: Don't push tag --- .../release/version_control/version_control_git_adapter.dart | 2 +- test/src/commands/release_command_test.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/commands/release/version_control/version_control_git_adapter.dart b/lib/src/commands/release/version_control/version_control_git_adapter.dart index 288f630..8c6feb1 100644 --- a/lib/src/commands/release/version_control/version_control_git_adapter.dart +++ b/lib/src/commands/release/version_control/version_control_git_adapter.dart @@ -49,7 +49,7 @@ class VersionControlGitAdapter implements VersionControlPort { await _processManager.run(['git', 'add', 'pubspec.yaml', 'CHANGELOG.md']); await _processManager.run(['git', 'commit', '-m', 'chore: $versionTag']); await _processManager - .run(['git', 'push', '--atomic', 'origin', branchName, versionTag]); + .run(['git', 'push', '--atomic', 'origin', branchName]); _logger.info('Branch $branchName created.'); } } diff --git a/test/src/commands/release_command_test.dart b/test/src/commands/release_command_test.dart index bd03d92..ee6a28b 100644 --- a/test/src/commands/release_command_test.dart +++ b/test/src/commands/release_command_test.dart @@ -203,7 +203,7 @@ void main() { ).thenAnswer((final _) async => ProcessResult(0, 0, '', '')); when( () => processManager.run( - ['git', 'push', '--atomic', 'origin', versionBranch, versionTag], + ['git', 'push', '--atomic', 'origin', versionBranch], ), ).thenAnswer((final _) async => ProcessResult(0, 0, '', '')); @@ -243,7 +243,7 @@ void main() { ['git', 'checkout', '-b', versionBranch], ['git', 'add', 'pubspec.yaml', 'CHANGELOG.md'], ['git', 'commit', '-m', 'chore: $versionTag'], - ['git', 'push', '--atomic', 'origin', versionBranch, versionTag], + ['git', 'push', '--atomic', 'origin', versionBranch], ]) { verify(() => processManager.run(c)); }