diff --git a/src/ModuleCore/Git/GitManager.cs b/src/ModuleCore/Git/GitManager.cs index b0e847a..8b2b6f4 100644 --- a/src/ModuleCore/Git/GitManager.cs +++ b/src/ModuleCore/Git/GitManager.cs @@ -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. _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(); } } } \ No newline at end of file