diff options
-rw-r--r-- | ybd/repos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ybd/repos.py b/ybd/repos.py index 75685fb..1b4da71 100644 --- a/ybd/repos.py +++ b/ybd/repos.py @@ -115,8 +115,8 @@ def ensure_ref_contains_sha(dn, gitdir, ref, sha): def sha_in_ref(): try: - return bool(check_output(['git', 'for-each-ref', '--contains', - sha, 'refs/*/' + ref], stderr=fnull, + return bool(check_output(['git', 'branch', '--contains', + sha, ref], stderr=fnull, universal_newlines=True).strip()) except: return False |