diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-11-10 16:07:57 -0500 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 09:59:13 -0800 |
| commit | f09048a23a59aee527ceb3b8b90322adaf3bd577 (patch) | |
| tree | f3fafb69e628dd5e62b26766708ea682d906f611 /mesonbuild/compilers/objcpp.py | |
| parent | 18c1ce716b8fe43cce090daa851b64cbbbdbd532 (diff) | |
| download | meson-f09048a23a59aee527ceb3b8b90322adaf3bd577.tar.gz | |
fix parsing cgit paths
Using os.path.basename on a string such as "/foo/bar/" returns an
empty string, which breaks on e.g. Cgit git URLs.
The fix uses pathlibs Path class "parent" method, which gets the last
component of the path, so "bar" for "/foo/bar/".
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
0 files changed, 0 insertions, 0 deletions
