Skip to content

Commit 1fde9f9

Browse files
authored
Add develop as possible main branch
1 parent f959d12 commit 1fde9f9

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)