aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorIain Lane <laney@debian.org>2018-08-17 11:22:01 +0100
committerGuido Günther <agx@sigxcpu.org>2018-08-17 15:35:12 +0200
commit5fedb2baf1b03c3c128898de545984c1622bac79 (patch)
tree382d792af3d109a725d7c198941abe771d31a889 /tests
parent8b266be2def8ec346d8f91ef54e2f4fa8edd9532 (diff)
Ignore merge commits when looking at the pristine-tar branch
When there is a merge commit in this branch, we currently get the warning: gbp:warning: Unknown compression type of Merge branch 'pristine-tar' into 'pristine-tar', assuming gzip because we're grepping the commit logs to find out the compression type of the tarballs in there. For now, we can just use `git log ... --no-merges' to not see these commits. Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: #906331
Diffstat (limited to 'tests')
-rw-r--r--tests/05_test_detection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py
index d2579dfa..5e903db3 100644
--- a/tests/05_test_detection.py
+++ b/tests/05_test_detection.py
@@ -24,7 +24,7 @@ class MockGitRepository:
def pristine_tar_branch(self):
'pristine-tar'
- def grep_log(self, regex, branch):
+ def grep_log(self, regex, branch, merges=True):
return None
def get_commit_info(self, commit):