do not use a commit message
authorChristian Weiske <cweiske@cweiske.de>
Fri, 21 Sep 2012 16:12:36 +0000 (18:12 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 21 Sep 2012 16:12:36 +0000 (18:12 +0200)
src/phorkie/Repository/Post.php

index b181b5a..f94d9ab 100644 (file)
@@ -117,8 +117,6 @@ class Repository_Post
             }
         }
 
-        $commitmsg = "phorkie commit";
-
         if (isset($sessionData['identity'])) {
             $notes = $sessionData['identity'];
         } else {
@@ -127,7 +125,8 @@ class Repository_Post
 
         if ($bCommit) {
             $vc->getCommand('commit')
-                ->setOption('message', $commitmsg)
+                ->setOption('message', '')
+                ->setOption('allow-empty-message')
                 ->setOption('author', $sessionData['name'].' <'.$sessionData['email'].'>')
                 ->execute();
             //FIXME: git needs ref BEFORE add