summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes3
-rw-r--r--lib/API/GitForge/Role/GitForge.pm10
2 files changed, 12 insertions, 1 deletions
diff --git a/Changes b/Changes
index cc506c8..20e82f4 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,9 @@
Revision history for API::GitForge
{{$NEXT}}
+ - API::GitForge::Role::GitForge::clean_repo(): reinstate
+ workaround -- bypass Git::Wrapper when pushing the gitforge
+ branch.
0.003 2020-03-10 09:21:28-07:00 America/Phoenix
- API::GitForge::GitLab::_ensure_repo(): avoid an unnecessary API
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