summaryrefslogtreecommitdiff
path: root/lib/API/GitForge/Role/GitForge.pm
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-03-13 17:27:24 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-03-13 17:27:24 -0700
commita596c254eb30247335258d432fa052b1bbe5cfae (patch)
treee05f1d2873707445accebffd9a3695cfa1f82962 /lib/API/GitForge/Role/GitForge.pm
parent6d6a64af884f34084058be0d3631a4d11dbb9565 (diff)
downloadp5-API-GitForge-a596c254eb30247335258d432fa052b1bbe5cfae.tar.gz
reinstate workaround for pushing the 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.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/API/GitForge/Role/GitForge.pm b/lib/API/GitForge/Role/GitForge.pm
index 52760ff..953eb91 100644
--- a/lib/API/GitForge/Role/GitForge.pm
+++ b/lib/API/GitForge/Role/GitForge.pm
@@ -119,7 +119,15 @@ sub clean_fork {
$git->add("README.md");
$git->commit({ message => "Temporary fork for pull request(s)" });
- $git->push($fork_uri, "master:gitforge");
+ # We should be able to just say
+ #
+ # $git->push($fork_uri, "master:gitforge");
+ #
+ # 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";
+
$self->_clean_config_fork($_[0]);
# assume that if we had to create the gitforge branch, we just