chore(git-provider): Trim output when getting current branch
This commit is contained in:
parent
7b59b90572
commit
c48549117f
1 changed files with 2 additions and 1 deletions
|
|
@ -230,7 +230,8 @@ public class GitManager
|
||||||
// Set the next check to be in the future so we don't hold up any list commands every time.
|
// Set the next check to be in the future so we don't hold up any list commands every time.
|
||||||
_nextCheckTime = now.AddMinutes(15).Ticks;
|
_nextCheckTime = now.AddMinutes(15).Ticks;
|
||||||
|
|
||||||
return _currentBranch;
|
// The branch name could (will) have a newline character at the end, so we trim that off
|
||||||
|
return _currentBranch.Trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue