Explorar el Código

Use constant for LOCAL_BRANCH_PREFIX.

Jelmer Vernooij hace 7 años
padre
commit
66ec17ff44
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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):