Default branch auto-discovery
Created by: rspeicher
A Project's default_branch
will now be null by default. Upon the first
repository push, discover_default_branch
gets called. If only one
branch exists, we use that. If two branches exist, we prefer the one
called master.
Includes a migration, so run those migrations, people!
Closes #803 (closed)
67 67 filename: (@commit.id.to_s + ".patch") 68 68 ) 69 69 end 70 71 protected 72 73 def load_refs 74 if params[:ref].blank? 75 @branch = params[:branch].blank? ? nil : params[:branch] Created by: dolanor
I installed the stable version of gitlab 1 day ago (v3.0.3) and I pushed the stable branch of gitlab to my freshly installed gitlab instance. Gitlab still showed me the "new repo" information instead of giving me access to the default branch which was "stable". I tried to force the access by going to /project/tree/stable and it gave me a 404.
By Administrator on 2012-11-22T17:00:16 (imported from GitLab project)
Please register or sign in to reply