Skip to content

Commit

Permalink
Allow to use UTF8 characters on a branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
matarillo committed Sep 26, 2015
1 parent fadc4dd commit 846a4ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GitUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ function Get-GitStatus($gitDir = (Get-GitDirectory)) {

if($settings.EnableFileStatus -and !$(InDisabledRepository)) {
dbg 'Getting status' $sw
$currentEncoding = [Console]::OutputEncoding
[Console]::OutputEncoding = [Text.Encoding]::UTF8
$status = git -c color.status=false status --short --branch 2>$null
[Console]::OutputEncoding = $currentEncoding
if($settings.EnableStashStatus) {
dbg 'Getting stash count' $sw
$stashCount = $null | git stash list 2>$null | measure-object | select -expand Count
Expand Down

0 comments on commit 846a4ec

Please sign in to comment.