diff --git a/cerbero/utils/git.py b/cerbero/utils/git.py index eb799ed50..8d01b27a5 100644 --- a/cerbero/utils/git.py +++ b/cerbero/utils/git.py @@ -233,7 +233,7 @@ async def async_get_hash(config, git_dir, commit, remotes=None): return commit else: raise Exception('Cannot retrieve hash of a commit without cloning or knowing the remote') - output = await shell.async_check_output('%s rev-parse %s' % + output = await shell.async_check_output('%s rev-parse -- %s' % (GIT, commit), git_dir, env=env) return output.rstrip()