From 3237b6e42db7459d4055747d58ba8afc49371d27 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Tue, 4 Oct 2005 20:56:18 +0100 Subject: [PATCH] Make __commits global in git.py Some weird errors with Python scoping for the __head global variable required the use of global. Add it for this variable as well. Signed-off-by: Catalin Marinas --- stgit/git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stgit/git.py b/stgit/git.py index 7a5c9e4..083e97f 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -92,6 +92,8 @@ def get_commit(id_hash): """Commit objects factory. Save/look-up them in the __commits dictionary """ + global __commits + if id_hash in __commits: return __commits[id_hash] else: -- 2.11.0