#4313 Always instantiate the status variable
Merged 5 years ago by pingou. Opened 5 years ago by pingou.

file modified
+1
@@ -2663,6 +2663,7 @@ 

          output["new_id"] = str(patch.new_id)

          output["old_id"] = str(patch.old_id)

      elif hasattr(patch, "delta"):

+         status = None

          # Newer pygit2

          # we recognize non-executable file, executable file and symlink

          expected_modes = [33188, 33261, 40960]

Otherwise if we end up with an unknown status, pagure blows up as the
variable is undefined.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto efe818f6e954adbd7102004544b638aeb1970e0d

5 years ago

rebased onto 537a26d48494c29c988340f725027b6e254d109d

5 years ago

instanciate -> instantiate

rebased onto 70eb4b4

5 years ago

Jenkins is all green including this last build.

Thanks for the review :)

Pull-Request has been merged by pingou

5 years ago