From d0073e22cf4d2c2d3e685abcaf37ca81db78aeac Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 28 Nov 2017 11:48:25 -0500 Subject: [PATCH] Normalizes tracking to undefined --- src/git/models/branch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/models/branch.ts b/src/git/models/branch.ts index 567ff84..a12e94c 100644 --- a/src/git/models/branch.ts +++ b/src/git/models/branch.ts @@ -26,7 +26,7 @@ export class GitBranch { this.current = current; this.name = branch; - this.tracking = tracking; + this.tracking = tracking === '' || tracking == null ? undefined : tracking; this.state = { ahead: ahead, behind: behind