From cb59a7ad40c86f3ce3ce8fd7b838e9e09634a361 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 2 Apr 2025 02:44:45 +0800 Subject: Git: Return fsPath from OpenRepo --- git_misc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'git_misc.go') diff --git a/git_misc.go b/git_misc.go index a8d7c30..3ff6f81 100644 --- a/git_misc.go +++ b/git_misc.go @@ -22,9 +22,7 @@ import ( // TODO: This should be deprecated in favor of doing it in the relevant // request/router context in the future, as it cannot cover the nuance of // fields needed. -func openRepo(ctx context.Context, groupPath []string, repoName string) (repo *git.Repository, description string, repoID int, err error) { - var fsPath string - +func openRepo(ctx context.Context, groupPath []string, repoName string) (repo *git.Repository, description string, repoID int, fsPath string, err error) { err = database.QueryRow(ctx, ` WITH RECURSIVE group_path_cte AS ( -- Start: match the first name in the path where parent_group IS NULL -- cgit v1.2.3