Skip to content

Commit d0073e2

Browse files
committed
Normalizes tracking to undefined
1 parent 58b95a9 commit d0073e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/models/branch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class GitBranch {
2626

2727
this.current = current;
2828
this.name = branch;
29-
this.tracking = tracking;
29+
this.tracking = tracking === '' || tracking == null ? undefined : tracking;
3030
this.state = {
3131
ahead: ahead,
3232
behind: behind

0 commit comments

Comments
 (0)