aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/model.go')
-rw-r--r--internal/admin/model.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/admin/model.go b/internal/admin/model.go
index d9eea03..cf69fcd 100644
--- a/internal/admin/model.go
+++ b/internal/admin/model.go
@@ -137,7 +137,7 @@ func (r *GitRepo) CasbinPolicies() [][]string {
// ReconcileRepo update repo export settings, update web config
func (r *GitRepo) ReconcileRepo(basePath string) {
// if exist -> continue
- repoBase := filepath.Join(basePath, r.Name, ".git")
+ repoBase := filepath.Join(basePath, fmt.Sprintf("%s.git", r.Name))
_, err := os.Stat(repoBase)
if errors.Is(err, fs.ErrNotExist) {
// if no exist -> init bare