Commit 6a6731cb authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Project: fixed default default branch logic

Was previously in a presenter, moved to project, but obviously
not covered yet by RSpec tests.

--HG--
branch : heptapod
parent 31e079ca796b
...@@ -2551,7 +2551,7 @@ def package_already_taken?(package_name) ...@@ -2551,7 +2551,7 @@ def package_already_taken?(package_name)
end end
def default_branch_or_master def default_branch_or_master
default_branch || project.mercurial? ? 'branch/default': 'master' default_branch || mercurial? ? 'branch/default' : 'master'
end end
def ci_config_path_or_default def ci_config_path_or_default
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment