Fix the GNU sed detection so it works where /usr/bin/sed is GNU.
(apologies for the CI churn)
@@ -25,10 +25,7 @@ git commit -m 3 3
# NOTE: This relies on GNU sed behavior and will fail on *BSDs (including macOS) without GNU
# sed installed.
-_sed=$(which sed)
-_gsed=$(which gsed)
-sed=${_gsed:=_sed}
-unset _sed _gsed
+sed=$(which gsed sed | head -1)
# NOTE: Starting with git 2.35.0 --preserve-merges was renamed to --rebase-merges
# TODO: Revisit this after git 3.x is released
