releaser: One more fix
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 24 Jun 2017 07:49:57 +0000 (09:49 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 24 Jun 2017 07:49:57 +0000 (09:49 +0200)
releaser/releaser.go

index 39a785da200586cac301b60c82c7ad6f5230396c..f3b4358a6591f1516babb387d6352806e37fde0d 100644 (file)
@@ -153,10 +153,11 @@ func (r *ReleaseHandler) Run() error {
                        if _, err := git("submodule", "update", "--remote", "--merge"); err != nil {
                                return err
                        }
-               }
-               // TODO(bep) the above may not have changed anything.
-               if _, err := git("commit", "-a", "-m", fmt.Sprintf("%s Update /docs [ci skip]", commitPrefix)); err != nil {
-                       return err
+
+                       // TODO(bep) the above may not have changed anything.
+                       if _, err := git("commit", "-a", "-m", fmt.Sprintf("%s Update /docs [ci skip]", commitPrefix)); err != nil {
+                               return err
+                       }
                }
 
                if err := bumpVersions(newVersion); err != nil {