1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-27 01:54:34 +00:00

Merge branch 'lunny/merge_getuserfork' of github.com:lunny/gitea into lunny/merge_getuserfork

This commit is contained in:
Lunny Xiao 2024-12-12 12:00:54 -08:00
commit 1585b4d05a

View File

@ -28,7 +28,7 @@ func GetForkedRepo(ctx context.Context, ownerID, repoID int64) (*Repository, err
Get(repo)
if err != nil {
return nil, err
} else if has {
} else if !has {
return nil, ErrRepoNotExist{ID: repoID}
}
return repo, nil