2
0
Эх сурвалжийг харах

Correct name error in porcelain.push()

The loop target is named `error`, not `status` (which is another `porcelain` function).
Martijn Pieters 4 жил өмнө
parent
commit
f4d078170b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      dulwich/porcelain.py

+ 1 - 1
dulwich/porcelain.py

@@ -990,7 +990,7 @@ def push(repo, remote_location=None, refspecs=None,
                 " failed -> " + e.args[0].decode(), inner=e)
 
         for ref, error in (result.ref_status or {}).items():
-            if status is not None:
+            if error is not None:
                 errstream.write(
                     b"Push of ref %s failed: %s" %
                     (ref, error.encode(err_encoding)))