]> git.ipfire.org Git - thirdparty/git.git/commitdiff
perl: also mark git-contacts executable
authorD. Ben Knoble <ben.knoble+github@gmail.com>
Tue, 4 Nov 2025 18:14:57 +0000 (13:14 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2025 17:57:47 +0000 (09:57 -0800)
When installing git-contacts with Meson via -Dcontrib=contacts, the default
Perl generation fails to mark it executable. As a result, "git contacts"
reports "'contacts' is not a git command."

Unlike generate-script.sh, we aren't testing the basename here; so, glob
the script name in the case arm to match wherever the input comes from.

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
generate-perl.sh

index 65f122ebfc76dcce607aca07fdbd9dc9e65a6b19..796d8359327f44af64fc4c30e36377ff7fb05cfb 100755 (executable)
@@ -30,7 +30,7 @@ sed -e '1{' \
     "$INPUT" >"$OUTPUT"
 
 case "$INPUT" in
-*.perl)
+*.perl|*git-contacts)
        chmod a+x "$OUTPUT";;
 *)
        ;;