mirror of
https://github.com/go-gitea/gitea
synced 2025-01-03 02:56:00 +01:00
Update models/repo/fork.go
Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
parent
82ca99db2d
commit
8a71bd9f6a
@ -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…
Reference in New Issue
Block a user