Skip to content

Commit a6f3c05

Browse files
authored
Merge pull request #25 from Jogge/patch-1
Add Support for develop as a Default Branch
2 parents f959d12 + 1fde9f9 commit a6f3c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenOnGitHub/GitRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private void Initialize(string repositoryPath)
5252
_rootDirectory = _innerRepository.Info.WorkingDirectory;
5353

5454
MainBranchName = _innerRepository.Branches.Select(x => x.FriendlyName)
55-
.FirstOrDefault(x => new[] { "main", "master" }.Contains(x.ToLower())) ?? "main";
55+
.FirstOrDefault(x => new[] { "main", "master", "develop" }.Contains(x.ToLower())) ?? "main";
5656
}
5757

5858
public bool IsInsideRepositoryFolder(string filePath)
@@ -110,4 +110,4 @@ public void Dispose()
110110
_innerRepository?.Dispose();
111111
}
112112
}
113-
}
113+
}

0 commit comments

Comments
 (0)