MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / main

Function main

gitless/cli/gl_init.py:31–39  ·  view source on GitHub ↗
(args, repo)

Source from the content-addressed store, hash-verified

29
30
31def main(args, repo):
32 if repo:
33 pprint.err('You are already in a Gitless repository')
34 return False
35 core.init_repository(url=args.repo)
36 pprint.ok('Local repo created in {0}'.format(os.getcwd()))
37 if args.repo:
38 pprint.ok('Initialized from remote {0}'.format(args.repo))
39 return True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected