@@ -166,7 +166,7 @@ public function removeBranch($name)
166166 public function getCurrentBranchName ()
167167 {
168168 try {
169- $ branch = $ this ->extractFromCommand (['branch ' , '-a ' ], function ($ value ) {
169+ $ branch = $ this ->extractFromCommand (['branch ' , '-a ' , ' --no-color ' ], function ($ value ) {
170170 if (isset ($ value [0 ]) && $ value [0 ] === '* ' ) {
171171 return trim (substr ($ value , 1 ));
172172 }
@@ -193,7 +193,7 @@ public function getCurrentBranchName()
193193 */
194194 public function getBranches ()
195195 {
196- return $ this ->extractFromCommand (['branch ' , '-a ' ], function ($ value ) {
196+ return $ this ->extractFromCommand (['branch ' , '-a ' , ' --no-color ' ], function ($ value ) {
197197 return trim (substr ($ value , 1 ));
198198 });
199199 }
@@ -206,7 +206,7 @@ public function getBranches()
206206 */
207207 public function getRemoteBranches ()
208208 {
209- return $ this ->extractFromCommand (['branch ' , '-r ' ], function ($ value ) {
209+ return $ this ->extractFromCommand (['branch ' , '-r ' , ' --no-color ' ], function ($ value ) {
210210 return trim (substr ($ value , 1 ));
211211 });
212212 }
@@ -219,7 +219,7 @@ public function getRemoteBranches()
219219 */
220220 public function getLocalBranches ()
221221 {
222- return $ this ->extractFromCommand (['branch ' ], function ($ value ) {
222+ return $ this ->extractFromCommand (['branch ' , ' --no-color ' ], function ($ value ) {
223223 return trim (substr ($ value , 1 ));
224224 });
225225 }
0 commit comments