Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function beforeHook() |
||
37 | { |
||
38 | $commentChar = $this->repository->getConfigOperator()->getSafely('core.commentchar', '#'); |
||
39 | $commitMessage = Git\CommitMessage::createFromFile((string)$this->arguments->get('file'), $commentChar); |
||
40 | |||
41 | $this->repository->setCommitMsg($commitMessage); |
||
42 | |||
43 | parent::beforeHook(); |
||
44 | } |
||
45 | } |
||
46 |