mirror of
https://github.com/go-gitea/gitea
synced 2025-01-27 18:14:28 +00:00
Merge branch 'lunny/merge_getuserfork' of github.com:lunny/gitea into lunny/merge_getuserfork
This commit is contained in:
commit
1585b4d05a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user