Skip to contentSkip to conversation

Change call to latest_revision() to match parameters in function definition.

PATCH New Nick D'Ademo 1 participant 1 message Nov 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change call to latest_revision() to match parameters in function definition.

This fixes the "latest_revision() takes exactly 4 arguments (5 given)" Python TypeError which occurs when attempting to fetch via SSH.

---
 bitbake/lib/bb/fetch2/git.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/fetch2/git.py +1 -1
index b236631..a9470e4 100644
@@ -125,7 +125,7 @@ class Git(FetchMethod):
             if not ud.revisions[name] or len(ud.revisions[name]) != 40  or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):
                 if ud.revisions[name]:
                     ud.branches[name] = ud.revisions[name]
-                ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
+                ud.revisions[name] = self.latest_revision(ud, d, name)
 
         gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.').replace('*', '.'))
         # for rebaseable git repo, it is necessary to keep mirror tar ball
Signature · 1 line
1.7.9.5