Skip to content

Commit 4fb7d0d

Browse files
committed
Merge branch 'release/2.3.1'
2 parents 0a3a6cf + d513226 commit 4fb7d0d

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v2.3.1
2+
## 04/30/2021
3+
4+
1. [](#bugfix)
5+
* Fixed regression where `testRepository` would erroneously pass with invalid credentials [#200](https://github.com/trilbymedia/grav-plugin-git-sync/issues/200)
6+
* Fixed Exception thrown with `bin/plugin git-sync status` command, preventing `sync` [#200](https://github.com/trilbymedia/grav-plugin-git-sync/issues/200)
7+
18
# v2.3.0
29
## 04/27/2021
310

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Git Sync
22
type: plugin
33
slug: git-sync
4-
version: 2.3.0
4+
version: 2.3.1
55
description: Allows to synchronize portions of Grav with Git Repositories (GitHub, BitBucket, GitLab)
66
icon: git
77
author:

classes/GitSync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ public function execute($command, $quiet = false)
481481
exec($command, $output, $returnValue);
482482
}
483483

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

cli/StatusCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ protected function serve()
9090
Helper::prepareRepository(
9191
$plugin->getUser() ?? '',
9292
$password,
93-
$repository)
93+
$repository),
94+
$plugin->getRemote('branch', null),
9495
);
9596
$this->console_log($testRepository, $password);
9697

0 commit comments

Comments
 (0)