2
0
Эх сурвалжийг харах

Use constant for LOCAL_BRANCH_PREFIX.

Jelmer Vernooij 6 жил өмнө
parent
commit
66ec17ff44
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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):