snakemake.common.git.get_git_root

snakemake.common.git.get_git_root(path)[source]
Parameters:

path – (str) Path a to a directory/file that is located inside the repo

Returns:

path to the root folder for git repo