summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-13 01:50:31 (GMT)
committerSimon Glass <sjg@chromium.org>2016-03-18 03:27:39 (GMT)
commitd4c8572b7187cc21ca39d185fd19813e69fbd515 (patch)
tree2c3562338849c535e5ec6ecb530927161fbf54f1 /tools/patman
parent59b35ddd2684bc2f81352d8cd14037752d9b639b (diff)
downloadu-boot-d4c8572b7187cc21ca39d185fd19813e69fbd515.tar.xz
buildman: Allow branch names which conflict with directories
At present if you try to use buildman with the branch 'test' it will complain that it is unsure whether you mean the branch or the directory. This is a feature of the 'git log' command that buildman uses. Fix it by resolving the ambiguity. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/gitutil.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py
index 5f1b4f6..e088bae 100644
--- a/tools/patman/gitutil.py
+++ b/tools/patman/gitutil.py
@@ -44,6 +44,11 @@ def LogCmd(commit_range, git_dir=None, oneline=False, reverse=False,
cmd.append('-n%d' % count)
if commit_range:
cmd.append(commit_range)
+
+ # Add this in case we have a branch with the same name as a directory.
+ # This avoids messages like this, for example:
+ # fatal: ambiguous argument 'test': both revision and filename
+ cmd.append('--')
return cmd
def CountCommitsToBranch():