chore(git-provider): Trim output when getting current branch

This commit is contained in:
Scott 2026-08-24 17:35:53 +10:00
commit c48549117f

View file

@ -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();
}
}
}