Skip to content
2 changes: 1 addition & 1 deletion src/repo_routes.v
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub fn (mut app App) handle_new_repo(mut ctx Context, name string, clone_url str
}
repo_id := new_repo2.id
// primary_branch := git.get_repository_primary_branch(repo_path)
primary_branch := new_repo2.git_repo.primary_branch()
primary_branch := new_repo2.primary_branch
app.update_repo_primary_branch(repo_id, primary_branch) or {
ctx.error('There was an error while adding the repo')
return app.new(mut ctx)
Expand Down
Loading