g_dir: Use an existing directory if one exists. no_tree: If set to true prevents creation of a working tree. )