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

Function wikiRemoteURL

internal/database/repo.go:784–793  ·  view source on GitHub ↗

wikiRemoteURL returns accessible repository URL for wiki if exists. Otherwise, it returns an empty string.

(remote string)

Source from the content-addressed store, hash-verified

782// wikiRemoteURL returns accessible repository URL for wiki if exists.
783// Otherwise, it returns an empty string.
784func wikiRemoteURL(remote string) string {
785 remote = strings.TrimSuffix(remote, ".git")
786 for _, suffix := range commonWikiURLSuffixes {
787 wikiURL := remote + suffix
788 if isMirrorURLAccessible(time.Minute, wikiURL) {
789 return wikiURL
790 }
791 }
792 return ""
793}
794
795// MigrateRepository migrates a existing repository from other project hosting.
796func MigrateRepository(doer, owner *User, opts MigrateRepoOptions) (*Repository, error) {

Callers 1

MigrateRepositoryFunction · 0.85

Calls 1

isMirrorURLAccessibleFunction · 0.85

Tested by

no test coverage detected