Skip to content

git: fix cloning repo at /new #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 22, 2025
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