aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorMartin Hostettler <textshell@uchuujin.de>2019-11-27 17:02:57 +0100
committerNirbheek Chauhan <nirbheek@centricular.com>2019-11-28 22:41:16 +0530
commit1ec17ba9e1cfdc7ca562ec05a31c8ac54a0ae407 (patch)
treefd215970e2c51174d0a5c7930c49684862673324 /mesonbuild/interpreter.py
parent8f673d0139e327da78bceec583ec6afc5aa3ee0f (diff)
downloadmeson-1ec17ba9e1cfdc7ca562ec05a31c8ac54a0ae407.zip
meson-1ec17ba9e1cfdc7ca562ec05a31c8ac54a0ae407.tar.gz
meson-1ec17ba9e1cfdc7ca562ec05a31c8ac54a0ae407.tar.bz2
wrap: Resolver.get_git: Factor out --depth argument generation and make sure not to pass None as parameter
507cf47507cf47 broke the combination of clone-recursive without depth. Because it passed depth (as None) to git. To fix this the depth option is now generated once as a list when depth is set and else set to an empty list and unpacked into the argument this when needed. This reduces duplication and allows code to work the same for both cases.
Diffstat (limited to 'mesonbuild/interpreter.py')
0 files changed, 0 insertions, 0 deletions