Skip to content

Commit 2965c4c

Browse files
committed
please.sh build: always update the index before diff'ing
This bug was lurking there, like, forever. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 399fae0 commit 2965c4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

please.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ pkg_build () {
468468
'"$extra_makepkg_opts" ||
469469
die "%s: could not build\n" "$sdk/$pkgpath"
470470

471+
git update-index -q --refresh &&
471472
git diff-files --quiet --ignore-submodules PKGBUILD ||
472473
git commit -s -m "$package: new version" PKGBUILD ||
473474
die "%s: could not commit after build\n" "$sdk/$pkgpath"
@@ -512,6 +513,7 @@ pkg_build () {
512513

513514
if test "a$sdk32" = "a$sdk"
514515
then
516+
git update-index -q --refresh &&
515517
git diff-files --quiet --ignore-submodules PKGBUILD ||
516518
git commit -s -m "$package: new version" PKGBUILD ||
517519
die "%s: could not commit after build\n" "$sdk/$pkgpath"

0 commit comments

Comments
 (0)