def cmd_init(cfg, args):
    from config import create_default_configuration_file
    i = 0

    if not os.path.exists(CFGDIR):
        i += 1
        os.makedirs(CFGDIR)

    if not os.path.exists(TPLDIR):
        i += 1
        os.makedirs(TPLDIR)

    # try create the default configuration file
    wrote_cfg = create_default_configuration_file()

    if wrote_cfg:
        term.out("gitver has been initialized and configured.")
    else:
        term.warn("gitver couldn't create the default configuration file, "
                  "does it already exist?")
Fetch the repo. If the local copy was updated, return True. If the
dataset/ETHPy150Open manuelbua/gitver/gitver/commands.py/cmd_init--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/gitfs.py/Dulwich._fetch