equal
deleted
inserted
replaced
229 prefix = 'refs/tags/' |
229 prefix = 'refs/tags/' |
230 |
230 |
231 # Build complete list of tags, both annotated and bare ones |
231 # Build complete list of tags, both annotated and bare ones |
232 for line in fh: |
232 for line in fh: |
233 line = line.strip() |
233 line = line.strip() |
234 if line.startswith("error:"): |
234 if line.startswith("error:") or line.startswith("fatal:"): |
235 raise util.Abort(_('cannot read tags from %s') % self.path) |
235 raise util.Abort(_('cannot read tags from %s') % self.path) |
236 node, tag = line.split(None, 1) |
236 node, tag = line.split(None, 1) |
237 if not tag.startswith(prefix): |
237 if not tag.startswith(prefix): |
238 continue |
238 continue |
239 alltags[tag[len(prefix):]] = node |
239 alltags[tag[len(prefix):]] = node |