Skip to content

Commit

Permalink
Revert "Hopefully fix GitPlugin's broken caching behavior."
Browse files Browse the repository at this point in the history
(due to unclear infinite-self-recursion issue)

This reverts commit f65bc12.
  • Loading branch information
hvr committed Oct 20, 2010
1 parent e56f7bb commit 672da40
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tracext/git/PyGIT.py
Expand Up @@ -503,19 +503,13 @@ def verifyrev(self, rev):

if rc in _rev_cache.rev_dict:
return rc
elif GitCore.is_sha(rc):
# rev-parse returned a sha, it's possible the db is just out of date
# Flag the db for rebuilding, and try again
self.__rev_cache = None
return self.verifyrev(rev)

if rc in _rev_cache.tag_set:
sha = self.repo.cat_file("tag", rc).split(None, 2)[:2]
if sha[0] != 'object':
self.logger.debug("unexpected result from 'git-cat-file tag %s'" % rc)
return None
return sha[1]
# XXX might need a "db is out of date" branch here as well

return None

Expand Down

0 comments on commit 672da40

Please sign in to comment.