Browse Source

Make refspecs argument to dulwich.porcelain.push mandatory.

Jelmer Vernooij 8 years ago
parent
commit
f75362c1f0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      dulwich/porcelain.py

+ 4 - 3
dulwich/porcelain.py

@@ -649,13 +649,14 @@ def reset(repo, mode, committish="HEAD"):
         r.reset_index(tree)
 
 
-def push(repo, remote_location, refspecs=None,
-         outstream=default_bytes_out_stream, errstream=default_bytes_err_stream):
+def push(repo, remote_location, refspecs,
+         outstream=default_bytes_out_stream,
+         errstream=default_bytes_err_stream):
     """Remote push with dulwich via dulwich.client
 
     :param repo: Path to repository
     :param remote_location: Location of the remote
-    :param refspecs: relative path to the refs to push to remote
+    :param refspecs: Fefs to push to remote
     :param outstream: A stream file to write output
     :param errstream: A stream file to write errors
     """