summaryrefslogtreecommitdiffstats
path: root/git_refs.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_refs.py')
-rw-r--r--git_refs.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/git_refs.py b/git_refs.py
index 3c266061..7feaffb1 100644
--- a/git_refs.py
+++ b/git_refs.py
@@ -16,11 +16,12 @@
16import os 16import os
17from trace import Trace 17from trace import Trace
18 18
19HEAD = 'HEAD' 19HEAD = 'HEAD'
20R_HEADS = 'refs/heads/' 20R_CHANGES = 'refs/changes/'
21R_TAGS = 'refs/tags/' 21R_HEADS = 'refs/heads/'
22R_PUB = 'refs/published/' 22R_TAGS = 'refs/tags/'
23R_M = 'refs/remotes/m/' 23R_PUB = 'refs/published/'
24R_M = 'refs/remotes/m/'
24 25
25 26
26class GitRefs(object): 27class GitRefs(object):
@@ -138,7 +139,7 @@ class GitRefs(object):
138 139
139 def _ReadLoose1(self, path, name): 140 def _ReadLoose1(self, path, name):
140 try: 141 try:
141 fd = open(path, 'rb') 142 fd = open(path)
142 except IOError: 143 except IOError:
143 return 144 return
144 145