From: Catalin Marinas Date: Tue, 4 Oct 2005 19:56:18 +0000 (+0100) Subject: Make __commits global in git.py X-Git-Tag: v0.14.3~641 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/3237b6e42db7459d4055747d58ba8afc49371d27?ds=sidebyside 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 --- 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: