func init() { // Overwrite the git opener to return repositories that use the // gogits native-go implementation. vcs.RegisterOpener("git", func(dir string) (vcs.Repository, error) { return Open(dir) }) }
func init() { // Overwrite the hg opener to return repositories that use the // faster native-Go hg implementation. vcs.RegisterOpener("hg", func(dir string) (vcs.Repository, error) { return Open(dir) }) }
func init() { vcs.RegisterOpener("hg", func(dir string) (vcs.Repository, error) { return Open(dir) }) vcs.RegisterCloner("hg", func(url, dir string, opt vcs.CloneOpt) (vcs.Repository, error) { return CloneHgRepository(url, dir, opt) }) }