diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-16 15:48:27 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-16 15:48:27 -0700 |
commit | 7334ad055eeea9c9ced80614486d34e74cec2733 (patch) | |
tree | dbc48a36ec24bede4ba449fc7e9bccab5f48c3a1 /lib/API/GitForge/Role/GitForge.pm | |
parent | 89b581c6fa663d8a9db728d98e7f56c83c991444 (diff) | |
download | p5-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/GitForge/Role/GitForge.pm')
-rw-r--r-- | lib/API/GitForge/Role/GitForge.pm | 6 |
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 |