projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aba3a8b
)
Adjust Git._vcs_isdir() to Python-2.5-compatible syntax
author
W. Trevor King
<wking@drexel.edu>
Tue, 29 Dec 2009 11:40:38 +0000
(06:40 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Tue, 29 Dec 2009 11:40:38 +0000
(06:40 -0500)
libbe/storage/vcs/git.py
patch
|
blob
|
history
diff --git
a/libbe/storage/vcs/git.py
b/libbe/storage/vcs/git.py
index 35dcd68e3e2457a663b733612a75e95555a00161..2280665c39cbc002d5f3e3bc8cd4fe79e5e9c2d0 100644
(file)
--- a/
libbe/storage/vcs/git.py
+++ b/
libbe/storage/vcs/git.py
@@
-125,7
+125,8
@@
class Git(base.VCS):
def _vcs_isdir(self, path, revision):
arg = '%s:%s' % (revision,path)
args = ['ls-tree', arg]
- status,output,error = self._u_invoke_client(*args, expect=(0,128))
+ kwargs = {'expect':(0,128)}
+ status,output,error = self._u_invoke_client(*args, **kwargs)
if status != 0:
if 'not a tree object' in error:
return False