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

Function deleteRepoLocalCopy

internal/database/repo.go:1505–1509  ·  view source on GitHub ↗
(repoID int64)

Source from the content-addressed store, hash-verified

1503}
1504
1505func deleteRepoLocalCopy(repoID int64) {
1506 repoWorkingPool.CheckIn(com.ToStr(repoID))
1507 defer repoWorkingPool.CheckOut(com.ToStr(repoID))
1508 RemoveAllWithNotice(fmt.Sprintf("Delete repository %d local copy", repoID), repoutil.RepositoryLocalPath(repoID))
1509}
1510
1511// ChangeRepositoryName changes all corresponding setting from old repository name to new one.
1512func ChangeRepositoryName(u *User, oldRepoName, newRepoName string) (err error) {

Callers 3

ChangeUsernameMethod · 0.85
TransferOwnershipFunction · 0.85
ChangeRepositoryNameFunction · 0.85

Calls 4

RepositoryLocalPathFunction · 0.92
RemoveAllWithNoticeFunction · 0.85
CheckInMethod · 0.80
CheckOutMethod · 0.80

Tested by

no test coverage detected