pacman/scripts/libmakepkg/source
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
..
bzr.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
file.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
git.sh.in makepkg: guard against undefined git pinned sources 2020-06-11 10:50:52 +10:00
hg.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
local.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
meson.build Add meson.build files to build with meson 2018-11-02 03:16:34 -04:00
svn.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00