Skip to content

Commit

Permalink
Merge pull request #400 from wangyouw/feature-gitlog-time
Browse files Browse the repository at this point in the history
Feature gitlog time
  • Loading branch information
littlehz committed Jun 25, 2018
2 parents a435143 + 2a322c1 commit 2cdb1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Git.php
Expand Up @@ -113,7 +113,7 @@ public function getCommitList($branch = 'master', $count = 20) {
$destination = Project::getDeployFromDir();
$this->updateRepo($branch, $destination);
$cmd[] = sprintf('cd %s ', $destination);
$cmd[] = '/usr/bin/env git log -' . $count . ' --pretty="%h - %an %s" ';
$cmd[] = '/usr/bin/env git log -' . $count . ' --pretty=format:"%h - %ad - %an %s " --date=local';
$command = join(' && ', $cmd);
$result = $this->runLocalCommand($command);
if (!$result) {
Expand Down

0 comments on commit 2cdb1b1

Please sign in to comment.