diff --git a/src/repo_routes.v b/src/repo_routes.v index 77b55ca9..dca67006 100644 --- a/src/repo_routes.v +++ b/src/repo_routes.v @@ -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)