def get_local_rev(proj_dir, local_branch) :
    try :
        output = subprocess.check_output('git rev-parse {}'.format(local_branch), cwd=proj_dir, shell=True)
        return output.rstrip()
    except subprocess.CalledProcessError :
        log.error("failed to call 'git rev-parse'")
        return None

#-------------------------------------------------------------------------------
Process inboud queues
dataset/ETHPy150Open floooh/fips/mod/tools/git.py/get_local_rev--crossover with--dataset/ETHPy150Open saltstack/salt/salt/daemons/flo/core.py/SaltRaetRoadStackServiceRx.action