@@ -1,5 +1,8 @@
0.20.21 UNRELEASED
+ * In porcelain.push, default to local active branch.
+ (Jelmer Vernooij, #846)
+
0.20.20 2021-03-03
* Implement ``Stash.drop``. (Peter Rowlands)
@@ -1065,6 +1065,8 @@ def push(
# Open the repo
with open_repo_closing(repo) as r:
+ if refspecs is None:
+ refspecs = [active_branch(r)]
(remote_name, remote_location) = get_remote_repo(r, remote_location)
# Get the client and path