@_git_check
def initializer(gitrepo):
    # If it's already initialized, refuse to run
    if repo_jiginitialized(gitrepo):
        raise AlreadyInitialized('The repository is already initialized.')

    # Create the container for all things jig
    jig_dir = join(gitrepo, JIG_DIR_NAME)

    mkdir(jig_dir)
    mkdir(join(jig_dir, JIG_PLUGIN_DIR))

    set_jigconfig(gitrepo)

    # Initialize the date plugins were last checked to right now
    config = set_jigconfig(
        gitrepo,
        set_checked_for_updates(gitrepo))

    return config
Initializes a Git repo for use with jig.
dataset/ETHPy150Open robmadole/jig/src/jig/plugins/tools.py/initializer