Skip to content

Commit 1585b4d

Browse files
committed
Merge branch 'lunny/merge_getuserfork' of github.com:lunny/gitea into lunny/merge_getuserfork
2 parents 09e02c1 + 8a71bd9 commit 1585b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/fork.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func GetForkedRepo(ctx context.Context, ownerID, repoID int64) (*Repository, err
2828
Get(repo)
2929
if err != nil {
3030
return nil, err
31-
} else if has {
31+
} else if !has {
3232
return nil, ErrRepoNotExist{ID: repoID}
3333
}
3434
return repo, nil

0 commit comments

Comments
 (0)