pacman/scripts/libmakepkg
Eli Schwartz 817f9fb715 makepkg: guard against undefined git pinned sources
If something like source=(..."#commit=") is used, e.g. due to failed
variable expansion, we try to check out an empty refspec as nothing at
all, and end up just running "git checkout". This happens because we
fail at variable expansion too -- so let's quote our variables properly
and make sure git sees this as an empty refspec, so it can error out.

Also make sure it is interpreted as a ref instead of a path.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2020-06-11 10:50:52 +10:00
..
buildenv build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
executable build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
integrity build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
lint_config build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
lint_package build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
lint_pkgbuild build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
source makepkg: guard against undefined git pinned sources 2020-06-11 10:50:52 +10:00
tidy libmakepkg/strip: don't re-add the same debug source multiple times 2020-06-01 10:59:08 +10:00
util build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
buildenv.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
executable.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
integrity.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
lint_config.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
lint_package.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
lint_pkgbuild.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
meson.build meson: remove useless mkdir -p 2018-12-12 10:12:41 +10:00
source.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
srcinfo.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
tidy.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
util.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00