Skip to content

Commit

Permalink
Merge branch 'release/2.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Apr 30, 2021
2 parents 0a3a6cf + d513226 commit 4fb7d0d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v2.3.1
## 04/30/2021

1. [](#bugfix)
* Fixed regression where `testRepository` would erroneously pass with invalid credentials [#200](https://github.com/trilbymedia/grav-plugin-git-sync/issues/200)
* Fixed Exception thrown with `bin/plugin git-sync status` command, preventing `sync` [#200](https://github.com/trilbymedia/grav-plugin-git-sync/issues/200)

# v2.3.0
## 04/27/2021

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Git Sync
type: plugin
slug: git-sync
version: 2.3.0
version: 2.3.1
description: Allows to synchronize portions of Grav with Git Repositories (GitHub, BitBucket, GitLab)
icon: git
author:
Expand Down
2 changes: 1 addition & 1 deletion classes/GitSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function execute($command, $quiet = false)
exec($command, $output, $returnValue);
}

if ($returnValue !== 0 && (!empty($output) && $returnValue === 5) && !$quiet) {
if ($returnValue !== 0 && $returnValue !== 5 && !$quiet) {
throw new \RuntimeException(implode("\r\n", $output));
}

Expand Down
3 changes: 2 additions & 1 deletion cli/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ protected function serve()
Helper::prepareRepository(
$plugin->getUser() ?? '',
$password,
$repository)
$repository),
$plugin->getRemote('branch', null),
);
$this->console_log($testRepository, $password);

Expand Down

0 comments on commit 4fb7d0d

Please sign in to comment.