new bug report with patch
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>
Fri, 21 Feb 2014 18:12:00 +0000 (14:12 -0400)
committeradmin <admin@branchable.com>
Fri, 21 Feb 2014 18:12:00 +0000 (14:12 -0400)
doc/bugs/assumes___34__git_push_origin__34___is_sufficient.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/assumes___34__git_push_origin__34___is_sufficient.mdwn b/doc/bugs/assumes___34__git_push_origin__34___is_sufficient.mdwn
new file mode 100644 (file)
index 0000000..20d1dd4
--- /dev/null
@@ -0,0 +1,16 @@
+[[!template id=gitbranch branch=smcv/ready/git-push-origin-master
+  browse="http://git.pseudorandom.co.uk/smcv/ikiwiki.git/shortlog/refs/heads/ready/git-push-origin-master"
+  author="[[smcv]]"]]
+[[!tag patch]]
+
+git's behaviour when doing "git push origin" is configurable, and the
+default is going to change in 2.0. In particular, if you've set
+push.default to "nothing" (the "explicit is better than implicit" option),
+the regression test will warn:
+
+    fatal: You didn't specify any refspecs to push, and push.default
+    is "nothing".
+    'git push origin' failed:  at .../lib/IkiWiki/Plugin/git.pm line 220.
+
+The solution is to do "git push origin master" instead (but with the
+configured remote and branch names). --[[smcv]]