Browse Source

Use constant for LOCAL_BRANCH_PREFIX.

Jelmer Vernooij 6 years ago
parent
commit
66ec17ff44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/refs.py

+ 1 - 1
dulwich/refs.py

@@ -890,7 +890,7 @@ def write_info_refs(refs, store):
 
 
 def is_local_branch(x):
-    return x.startswith(b'refs/heads/')
+    return x.startswith(LOCAL_BRANCH_PREFIX)
 
 
 def strip_peeled_refs(refs):