Skip to content

Commit

Permalink
fix: Don't push tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon committed Jul 4, 2024
1 parent 50f43cc commit 4e81ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}
4 changes: 2 additions & 2 deletions test/src/commands/release_command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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, '', ''));

Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit 4e81ee3

Please sign in to comment.