diff options
| author | Justin J. Novack <jnovack@gmail.com> | 2012-09-18 08:09:00 -0400 |
|---|---|---|
| committer | Justin J. Novack <jnovack@gmail.com> | 2012-09-18 08:09:00 -0400 |
| commit | 4293cbe275bec99763c9fd4bd5df347bd359599f (patch) | |
| tree | 8c98aa4b37b0af9e2ef739d1f9aeb5b2d828a17a /src | |
| parent | 92d6cf1f537c2126baf324cbdadbef1067e156b6 (diff) | |
| download | phorkie-4293cbe275bec99763c9fd4bd5df347bd359599f.tar.gz phorkie-4293cbe275bec99763c9fd4bd5df347bd359599f.zip | |
FIX: Add identity to notes rather than commit
Diffstat (limited to 'src')
| -rw-r--r-- | src/phorkie/Repository/Post.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index ed44cf1..9119e06 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -118,10 +118,11 @@ class Repository_Post } $commitmsg = "phorkie commit"; + if (isset($sessionData['identity'])) { - $commitmsg .= " from ".$sessionData['identity']; + $notes = $sessionData['identity']; } else { - $commitmsg .= " by ".$sessionData['ipaddr']; + $notes = $sessionData['ipaddr']; } if ($bCommit) { @@ -129,6 +130,11 @@ class Repository_Post ->setOption('message', $commitmsg) ->setOption('author', $sessionData['name'].' <'.$sessionData['email'].'>') ->execute(); + //FIXME: git needs ref BEFORE add. ideally VersionControl_Git needs to be updated + $vc->getCommand('notes --ref=identity add') + ->setOption('force') + ->setOption('message', "$notes") + ->execute(); $bChanged = true; } |
