Skip to content
Browse files

Revert "Hopefully fix GitPlugin's broken caching behavior."

(due to unclear infinite-self-recursion issue)

This reverts commit f65bc12.
  • Loading branch information...
1 parent e56f7bb commit 672da40cca475e493861bb93ed25f9a2fd06b771 @hvr committed Oct 20, 2010
Showing with 0 additions and 6 deletions.
  1. +0 −6 tracext/git/PyGIT.py
View
6 tracext/git/PyGIT.py
@@ -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

0 comments on commit 672da40

Please sign in to comment.
Something went wrong with that request. Please try again.