Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move create/fork repository from models to modules/repository #9489

Merged
merged 9 commits into from
Jan 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
lunny committed Jan 12, 2020
commit 3d57347ffb8b6895b2d62eb17391d3458b37a85b
4 changes: 2 additions & 2 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (repo *Repository) MustOwnerName() string {
return repo.mustOwnerName(x)
}

// MustOwnerNameCtx is similiar MustOwnerName but with a database context
// MustOwnerNameCtx is similar MustOwnerName but with a database context
func (repo *Repository) MustOwnerNameCtx(ctx DBContext) string {
return repo.mustOwnerName(ctx.e)
}
Expand Down Expand Up @@ -717,7 +717,7 @@ func (repo *Repository) Link() string {
return repo.LinkCtx(DefaultDBContext())
}

// LinkCtx is similiar with Link but with database context
// LinkCtx is similar with Link but with database context
func (repo *Repository) LinkCtx(ctx DBContext) string {
return setting.AppSubURL + "/" + repo.fullName(ctx.e)
}
Expand Down