def has_uncommitted_files(proj_dir) :
    try :
        output = subprocess.check_output('git status -s', cwd=proj_dir, shell=True)
        if len(output) > 0 :
            return True, output
        else :
            return False, output
    except subprocess.CalledProcessError :
        log.error("failed to call 'git status -s'")
        return False, ''

#-------------------------------------------------------------------------------
check whether a git repo has uncommitted files
dataset/ETHPy150Open floooh/fips/mod/tools/git.py/has_uncommitted_files