pacman/scripts
Eli Schwartz d69da08abe 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>
(cherry picked from commit 817f9fb715)
2020-06-18 02:04:15 -07:00
..
completion Remove --force from completion 2019-10-23 22:06:54 +10:00
libmakepkg makepkg: guard against undefined git pinned sources 2020-06-18 02:04:15 -07:00
library scripts/library: fix typo in README 2018-12-10 11:12:27 +10:00
po Pull latest translations from Transifex 2019-11-01 10:54:12 +10:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
Makefile.am makepkg: do not count hard links multiple times when calculating pkg size 2019-10-30 10:03:46 +10:00
makepkg-template.pl.in build-aux/update-copyright 2019 2020 2020-06-18 01:45:38 -07:00
makepkg.sh.in makepkg: deterministic PKGINFO libprovides for multiple library versions 2020-06-18 02:02:28 -07:00
meson.build libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
pacman-db-upgrade.sh.in build-aux/update-copyright 2019 2020 2020-06-18 01:45:38 -07:00
pacman-key.sh.in build-aux/update-copyright 2019 2020 2020-06-18 01:45:38 -07:00
repo-add.sh.in build-aux/update-copyright 2019 2020 2020-06-18 01:45:38 -07:00
wrapper.sh.in build-aux/update-copyright 2019 2020 2020-06-18 01:45:38 -07:00