#157 Add a hint for rejecting a push to disabled branch
Merged 2 years ago by humaton. Opened 2 years ago by lenkaseg.
lenkaseg/pagure-dist-git eol  into  master

file modified
+1 -1
@@ -247,7 +247,7 @@ 

                  pdc_ref = branch_overrides[project.namespace][refname]

              is_supported = self.is_supported_branch(project, pdc_ref)

              if is_supported is False:

-                 self.info("Branch %s is unsupported" % refname)

+                 self.info("Branch %s is unsupported. Cannot push to a disabled branch (maybe eol?)." % refname)

                  return False

              elif is_supported is True:

                  self.debug("Branch %s is supported" % refname)

@@ -470,7 +470,7 @@ 

              )

          )

  

-         self.expect_info_msg("Branch refs/heads/f26 is unsupported")

+         self.expect_info_msg("Branch refs/heads/f26 is unsupported. Cannot push to a disabled branch (maybe eol?).")

  

      @patch("dist_git_auth.requests")

      def test_protected_supported_branch_committer(self, mock_requests):

rebased onto 0739abd

2 years ago

rebased onto 2e97c5e

2 years ago

Pull-Request has been merged by humaton

2 years ago