From 7334ad055eeea9c9ced80614486d34e74cec2733 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 16 Feb 2020 15:48:27 -0700 Subject: bypass Git::Wrapper for pushing gitforge branch Signed-off-by: Sean Whitton --- lib/API/GitForge/Role/GitForge.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/API') diff --git a/lib/API/GitForge/Role/GitForge.pm b/lib/API/GitForge/Role/GitForge.pm index 46877ba..a84e04a 100644 --- a/lib/API/GitForge/Role/GitForge.pm +++ b/lib/API/GitForge/Role/GitForge.pm @@ -115,7 +115,11 @@ sub clean_fork { close $fh; $git->add("README.md"); $git->commit({ message => "Temporary fork for pull request(s)" }); - $git->RUN("push", $fork_uri, "master:gitforge"); + + # TODO why does Git::Wrapper hang after pushing the branch to + # GitLab? for now, just use system() to do the push ourselves + system "git", "-C", $git->dir, "push", $fork_uri, "master:gitforge"; + $self->_clean_config_fork(@_); # assume that if we had to create the gitforge branch, we just -- cgit v1.2.3