]> git.ipfire.org Git - thirdparty/git.git/commitdiff
contrib: use a more portable shebang for git-credential-netrc
authorMaxim Cournoyer <maxim@guixotic.coop>
Tue, 24 Jun 2025 01:48:55 +0000 (10:48 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jun 2025 16:05:34 +0000 (09:05 -0700)
While the installed scripts have their Perl shebang set to PERL_PATH,
it is nevertheless useful to be able to run the uninstalled script for
manual tests while developing. This change makes the shebang more
portable by having the perl command looked from PATH instead of from a
fixed location.

Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/netrc/git-credential-netrc.perl

index 9fb998ae090325ba0e0080d31798b7b01870b30e..514f68d00be72a86ce62c93f7c5d4c50489e1311 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;