Skip to content

Commit

Permalink
The "commit" command is now also auto-invoked by "merge" command, whe…
Browse files Browse the repository at this point in the history
…n custom working directory was specified
  • Loading branch information
aik099 committed Jan 30, 2025
1 parent bf8fadf commit 5c670f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed
- Handle cases, when `svn log ... --use-merge-history ...` command timeout-out.
- The `merge` command wasn't doing auto-commit, when alternative working directly was specified.

## [0.8.0] - 2024-12-18
### Added
Expand Down
9 changes: 5 additions & 4 deletions src/SVNBuddy/Command/MergeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,11 +863,12 @@ protected function performCommit()
if ( $auto_commit ) {
$auto_deploy = $this->io->getOption('auto-deploy');

$commit_arguments = array(
'path' => $this->io->getArgument('path'),
);

if ( $auto_deploy !== null ) {
$commit_arguments = array('--auto-deploy' => $auto_deploy);
}
else {
$commit_arguments = array();
$commit_arguments['--auto-deploy'] = $auto_deploy;
}

$this->io->writeln(array('', 'Commencing automatic commit after merge ...'));
Expand Down

0 comments on commit 5c670f0

Please sign in to comment.