X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/4293cbe275bec99763c9fd4bd5df347bd359599f..52de444faa10f37c4174e9fe2c75e77484342549:/src/phorkie/Repository/Post.php diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index 9119e06..f94d9ab 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -117,8 +117,6 @@ class Repository_Post } } - $commitmsg = "phorkie commit"; - if (isset($sessionData['identity'])) { $notes = $sessionData['identity']; } else { @@ -127,10 +125,12 @@ 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. ideally VersionControl_Git needs to be updated + //FIXME: git needs ref BEFORE add + //quick hack until http://pear.php.net/bugs/bug.php?id=19605 is fixed $vc->getCommand('notes --ref=identity add') ->setOption('force') ->setOption('message', "$notes")