diff options
author | Martin Hostettler <textshell@uchuujin.de> | 2019-10-05 12:14:16 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-10-06 14:29:32 +0300 |
commit | 507cf479411050b76dc8724de1b3b464b8f965e3 (patch) | |
tree | 6765ce0ac5be7f167e7e4b565d274d9721a5c6c1 /mesonbuild/cmake/interpreter.py | |
parent | 39342fbe2547337c721930a5892799dc7048caf8 (diff) | |
download | meson-507cf479411050b76dc8724de1b3b464b8f965e3.zip meson-507cf479411050b76dc8724de1b3b464b8f965e3.tar.gz meson-507cf479411050b76dc8724de1b3b464b8f965e3.tar.bz2 |
wrap: Rework `depth` support for git.
Don't manually emulate a partial `git clone` when `depth` option is not
used. This keeps `git describe` working as before and generally supports
workflows that depend on tags and branches to exist in a wrap downloaded
subproject.
This also fixes downloading via git not working at all on CentOS 7
(git version 1.8.3.1).
For the `depth` case use `git clone --branch=... --depth=...` when
possible and only fall back to manual emulation wraps that specify a
full commit id, because for some reason that does not work with the
clone based workflow.
Fixes: #5991 (Regression in wrap support with git)
Diffstat (limited to 'mesonbuild/cmake/interpreter.py')
0 files changed, 0 insertions, 0 deletions