buildman: Fix incorrect arguemnt in GetUpstream()
authorSimon Glass <sjg@chromium.org>
Thu, 29 Jan 2015 18:35:16 +0000 (11:35 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 15 Feb 2015 21:34:06 +0000 (14:34 -0700)
This causes an error when trying to build a local branch which has a local
branch as its upstream.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
tools/patman/gitutil.py

index c593070d67ef24800462543c0a1774a33515c6bf..4c2c35bf9acfdc44af538cae6ffd64b609018ce9 100644 (file)
@@ -129,7 +129,7 @@ def GetUpstream(git_dir, branch):
         return upstream, msg
 
     if remote == '.':
-        return merge
+        return merge, None
     elif remote and merge:
         leaf = merge.split('/')[-1]
         return '%s/%s' % (remote, leaf), None