summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/lint_config/ext.sh.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2020-05-26 05:52:16 +0200
committerAllan McRae <allan@archlinux.org>2020-06-11 02:50:52 +0200
commit817f9fb715b4e90d28bc141dfccfc530b9e951dc (patch)
treecb3ac2909830ce29b5ef214488d1c0417001360f /scripts/libmakepkg/lint_config/ext.sh.in
parent3bd88821bbfc8066a63ddfc9959e78984bc17750 (diff)
downloadpacman-817f9fb715b4e90d28bc141dfccfc530b9e951dc.tar.gz
pacman-817f9fb715b4e90d28bc141dfccfc530b9e951dc.tar.xz
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>
Diffstat (limited to 'scripts/libmakepkg/lint_config/ext.sh.in')
0 files changed, 0 insertions, 0 deletions