Skip to content

Commit 2291d41

Browse files
authored
git: fix cloning repo at /new (#277)
1 parent c169865 commit 2291d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repo_routes.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ pub fn (mut app App) handle_new_repo(mut ctx Context, name string, clone_url str
257257
}
258258
repo_id := new_repo2.id
259259
// primary_branch := git.get_repository_primary_branch(repo_path)
260-
primary_branch := new_repo2.git_repo.primary_branch()
260+
primary_branch := new_repo2.primary_branch
261261
app.update_repo_primary_branch(repo_id, primary_branch) or {
262262
ctx.error('There was an error while adding the repo')
263263
return app.new(mut ctx)

0 commit comments

Comments
 (0)