summaryrefslogtreecommitdiff
path: root/lib/API
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-16 15:48:27 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-16 15:48:27 -0700
commit7334ad055eeea9c9ced80614486d34e74cec2733 (patch)
treedbc48a36ec24bede4ba449fc7e9bccab5f48c3a1 /lib/API
parent89b581c6fa663d8a9db728d98e7f56c83c991444 (diff)
downloadp5-API-GitForge-7334ad055eeea9c9ced80614486d34e74cec2733.tar.gz
bypass Git::Wrapper for pushing gitforge branch
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'lib/API')
-rw-r--r--lib/API/GitForge/Role/GitForge.pm6
1 files changed, 5 insertions, 1 deletions
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