Skip to content

Commit a69388c

Browse files
committed
Fix bug when generating repository
1 parent a100ac3 commit a69388c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/repository/template.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ func GenerateRepository(ctx context.Context, doer, owner *user_model.User, templ
107107
}()
108108

109109
// 2 - check whether the repository with the same storage exists
110-
isExist, err := gitrepo.IsRepositoryExist(ctx, generateRepo)
110+
var isExist bool
111+
isExist, err = gitrepo.IsRepositoryExist(ctx, generateRepo)
111112
if err != nil {
112113
log.Error("Unable to check if %s exists. Error: %v", generateRepo.FullName(), err)
113114
return nil, err

0 commit comments

Comments
 (0)