From 2374669e8d59f3d4895e579789c0038027f1b679 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Feb 2021 15:03:01 -0700 Subject: fix checking the exit status of the push of the gitforge branch Signed-off-by: Sean Whitton --- Changes | 2 ++ lib/API/GitForge/Role/GitForge.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 1fbbfea..781e2bb 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for API::GitForge {{$NEXT}} + - 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 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]); -- cgit v1.2.3 From 5adf91ecde7f37b0ec094e7a140e7ace4ef54f0b Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Feb 2021 15:10:23 -0700 Subject: bump version Signed-off-by: Sean Whitton --- dist.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist.ini b/dist.ini index 3be89a7..eba853e 100644 --- a/dist.ini +++ b/dist.ini @@ -4,7 +4,7 @@ license = GPL_3 copyright_holder = Sean Whitton copyright_year = 2017, 2020 -version = 0.005 +version = 0.006 [PkgVersion] [PodWeaver] -- cgit v1.2.3 From 8d6e6a5513a08a4394b024b8762c7fcebc1e08fd Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Feb 2021 15:10:47 -0700 Subject: v0.006 - API::GitForge::Role::GitForge::clean_fork(): fix checking the exit status of the push of the gitforge branch. Signed-off-by: Sean Whitton --- Changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Changes b/Changes index 781e2bb..e9a89a1 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ 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. -- cgit v1.2.3