diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-01 11:11:15 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-01 18:28:36 +0000 |
commit | ff059b8b9852054f6669bb8bdeb6945ff0631b70 (patch) | |
tree | 90a0a943f1a0565220032fdc5c7a789de88a51a8 /buildstream/_gitsourcebase.py | |
parent | 1eba1fed210d9814a06ef2b9a24610132b18235c (diff) | |
download | buildstream-bschubert/more-pythonic-list-concat.tar.gz |
Use [a, b, *c] instead of [a, b] + c when building listbschubert/more-pythonic-list-concat
This pattern is available from python3.5 and provides a simpler
understanding of what is going on
Diffstat (limited to 'buildstream/_gitsourcebase.py')
-rw-r--r-- | buildstream/_gitsourcebase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_gitsourcebase.py b/buildstream/_gitsourcebase.py index b986f7543..c0913409c 100644 --- a/buildstream/_gitsourcebase.py +++ b/buildstream/_gitsourcebase.py @@ -171,7 +171,7 @@ class GitMirror(SourceFetcher): tags = set() for options in [[], ['--first-parent'], ['--tags'], ['--tags', '--first-parent']]: exit_code, output = self.source.check_output( - [self.source.host_git, 'describe', '--abbrev=0', ref] + options, + [self.source.host_git, 'describe', '--abbrev=0', ref, *options], cwd=self.mirror) if exit_code == 0: tag = output.strip() |