releaser: Adjust
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 16 Jun 2017 07:21:44 +0000 (09:21 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 16 Jun 2017 07:40:47 +0000 (09:40 +0200)
releaser/releaser.go

index 230a498e66d2abee731d3b4f86ce5ca8873da1fb..1ceb722fc7d6fbdd297a26a616c8c36bc1c7d1a8 100644 (file)
@@ -195,7 +195,11 @@ func (r *ReleaseHandler) Run() error {
                        return err
                }
 
-               if _, err := git("-C", repo, "push", "origin", tag); err != nil {
+               repoURL := "git@github.com:gohugoio/hugo.git"
+               if i == 0 {
+                       repoURL = "git@github.com:gohugoio/hugoDocs.git"
+               }
+               if _, err := git("-C", repo, "push", repoURL, "origin/master", tag); err != nil {
                        return err
                }
        }