MCPcopy Create free account
hub / github.com/gogs/gogs / LocalCopyPath

Method LocalCopyPath

internal/database/repo.go:648–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

646}
647
648func (r *Repository) LocalCopyPath() string {
649 return filepath.Join(conf.Server.AppDataPath, "tmp", "local-r", com.ToStr(r.ID))
650}
651
652// UpdateLocalCopy fetches latest changes of given branch from repoPath to localPath.
653// It creates a new clone if local copy does not exist, but does not checks out to a

Callers 9

CheckoutNewBranchMethod · 0.95
UpdateRepoFileMethod · 0.95
GetDiffPreviewMethod · 0.95
DeleteRepoFileMethod · 0.95
UploadRepoFilesMethod · 0.95
UpdateLocalCopyBranchMethod · 0.95
CreateNewBranchMethod · 0.95
testPatchMethod · 0.80

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected