chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aa01a28
)
Make __commits global in git.py
author
Catalin Marinas
<catalin.marinas@gmail.com>
Tue, 4 Oct 2005 19:56:18 +0000
(20:56 +0100)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Tue, 4 Oct 2005 19:56:18 +0000
(20:56 +0100)
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 <catalin.marinas@gmail.com>
stgit/git.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/git.py
b/stgit/git.py
index 7a5c9e4a64a8009ca7671316300106758eff30be..083e97f80db999e28b7bbc2a5d601f6be465470e 100644
(file)
--- 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
"""
"""Commit objects factory. Save/look-up them in the __commits
dictionary
"""
+ global __commits
+
if id_hash in __commits:
return __commits[id_hash]
else:
if id_hash in __commits:
return __commits[id_hash]
else: