Skip to content

Commit

Permalink
run-checklist: validate that the Pseudo Console support is handled co…
Browse files Browse the repository at this point in the history
…rrectly

In git-for-windows/git#4571, it was pointed
out that this support was inverted, which we fixed. To verify that it
does not regress, let's add an explicit check.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 24, 2023
1 parent f4e9b63 commit 8afe9fc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions installer/run-checklist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,32 @@ case "$(git version)" in *2.40.*|*2.[123][0-9].*) true;; *) exit 123;; esac

git ls-remote git@ssh.dev.azure.com:v3/git-for-windows/git/git main

die () {
echo "$*" >&2
exit 1
}

pcon_choice="$(sed -n 's/^Enable Pseudo Console Support: //p' /etc/install-options.txt)" ||
die 'Could not read /etc/install-options.txt'

if test -n "$pcon_choice"
then
pcon_config="$(cat /etc/git-bash.config)" ||
die 'Could not read /etc/git-bash.config'

case "$pcon_choice" in
Enabled)
test "MSYS=enable_pcon" = "$pcon_config" ||
die "Expected enable_pcon in git-bash.config, but got '$pcon_config'"
;;
Disabled)
test "MSYS=disable_pcon" = "$pcon_config" ||
die "Expected disable_pcon in git-bash.config, but got '$pcon_config'"
;;
*)
die "Unexpected Pseudo Console choice: $pcon_choice"
;;
esac
fi

echo "All checks passed!" >&2

0 comments on commit 8afe9fc

Please sign in to comment.