diff options
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | dist.ini | 2 | ||||
-rw-r--r-- | lib/API/GitForge/Role/GitForge.pm | 4 |
3 files changed, 7 insertions, 3 deletions
@@ -2,6 +2,10 @@ Revision history for API::GitForge {{$NEXT}} +0.006 2021-02-09 15:10:36-07:00 America/Phoenix + - API::GitForge::Role::GitForge::clean_fork(): fix checking the exit + status of the push of the gitforge branch. + 0.005 2020-05-24 08:04:55-07:00 America/Phoenix - API::GitForge::Role::GitForge::clean_repo(): don't continue if fail to push the gitforge branch. @@ -4,7 +4,7 @@ license = GPL_3 copyright_holder = Sean Whitton <spwhitton@spwhitton.name> copyright_year = 2017, 2020 -version = 0.005 +version = 0.006 [PkgVersion] [PodWeaver] diff --git a/lib/API/GitForge/Role/GitForge.pm b/lib/API/GitForge/Role/GitForge.pm index 1301f88..f0c616b 100644 --- a/lib/API/GitForge/Role/GitForge.pm +++ b/lib/API/GitForge/Role/GitForge.pm @@ -126,8 +126,8 @@ sub clean_fork { # but that hangs indefinitely when pushing to (at least) Debian's # GitLab instance. So just bypass Git::Wrapper and do the push # ourselves for now - system qw(git -C), $git->dir, "push", $fork_uri, "master:gitforge" - or croak "failed to push the gitforge branch to $fork_uri"; + system qw(git -C), $git->dir, "push", $fork_uri, "master:gitforge"; + $! and croak "failed to push the gitforge branch to $fork_uri"; $self->_clean_config_fork($_[0]); |