From a1232696c7e57d98cb1bc3b093cde6f8c4eff5e6 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Mon, 3 Dec 2012 14:05:48 +0000 Subject: Fix missing argument to rev_list(), breaking resolve_ref for SHA1s This bug has been present since the initial commit to the cache server. Due to the missing repo_dir argument to rev_list(), resolving SHA1s rather than symbolic refs via /1.0/sha1s fails. This feature, however, is absolutely required for morph to resolve petrified system branches. --- morphcacheserver/repocache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morphcacheserver/repocache.py b/morphcacheserver/repocache.py index b7d46c3..9675e04 100644 --- a/morphcacheserver/repocache.py +++ b/morphcacheserver/repocache.py @@ -72,7 +72,7 @@ class RepoCache(object): if not self._is_valid_sha1(ref): raise InvalidReferenceError(repo_url, ref) try: - sha = self._rev_list(ref).strip() + sha = self._rev_list(repo_dir, ref).strip() return sha, self._tree_from_commit(repo_dir, sha) except: raise InvalidReferenceError(repo_url, ref) -- cgit v1.2.1