Skip to content
Snippets Groups Projects
Commit 22027e31 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #545

parent 88daa5a1
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,8 @@ class Git::Providers::Github < Git::Providers::Abstract
end
def default_branch
@default_branch ||= branch || client.repo(repository)[:default_branch]
@default_branch ||= branch.present? ? branch
: client.repo(repository)[:default_branch]
end
def branch_sha
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment