File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
namespace Gitonomy \Git ;
14
14
15
+ use Gitonomy \Git \Util \StringHelper ;
16
+
15
17
/**
16
18
* @author Alexandre Salomé <[email protected] >
17
19
*/
@@ -120,7 +122,7 @@ public function getCommits()
120
122
$ limit = null !== $ this ->limit ? '-n ' .((int ) $ this ->limit ) : '' ;
121
123
$ revisions = null !== $ this ->revisions ? $ this ->revisions : '--all ' ;
122
124
123
- $ args = array ('--format=format:%H ' );
125
+ $ args = array ('--encoding= ' .StringHelper:: getEncoding (), ' -- format=format:%H ' );
124
126
125
127
if (null !== $ this ->offset ) {
126
128
$ args [] = '--skip= ' .((int ) $ this ->offset );
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ class StringHelper
21
21
{
22
22
private static $ encoding = 'utf-8 ' ;
23
23
24
+ public static function getEncoding ()
25
+ {
26
+ return self ::$ encoding ;
27
+ }
28
+
24
29
public static function setEncoding ($ encoding )
25
30
{
26
31
self ::$ encoding = $ encoding ;
You can’t perform that action at this time.
0 commit comments