Skip to content

Commit ca28530

Browse files
author
alexandresalome
committed
fix tests
1 parent 58f5af5 commit ca28530

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Gitonomy/Git/Revision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getCommitHash()
8383
*/
8484
public function getLastModification($path = null)
8585
{
86-
return $this->getCommit()->getAuthorDate();
86+
return $this->getCommit()->getLastModification($path);
8787
}
8888

8989
/**

src/Gitonomy/Git/WorkingCopy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ public function getDiffPending()
5151
$diff = Diff::parse($this->run('diff', array('-r', '-p', '-m', '-M', '--full-index')));
5252
$diff->setRepository($this->repository);
5353

54-
return $this;
54+
return $diff;
5555
}
5656

5757
public function getDiffStaged()
5858
{
5959
$diff = Diff::parse($this->run('diff', array('-r', '-p', '-m', '-M', '--full-index', '--staged')));
6060
$diff->setRepository($this->repository);
6161

62-
return $this;
62+
return $diff;
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)