change-name-in-git-hooks.patch 830 B

12345678910111213141516171819202122
  1. commit 95bce8afd6973b00232f3cb7cc286d3994a07a13
  2. Author: Andrzej Telszewski <atelszewski@gmail.com>
  3. Date: Sat Oct 24 12:51:20 2020 +0200
  4. Change how git-store-meta is called from Git hooks
  5. Call `git-store-meta` instead of `git-store-meta.pl`.
  6. diff --git a/git-store-meta.pl b/git-store-meta.pl
  7. index ddc0024..b0d0d37 100755
  8. --- a/git-store-meta.pl
  9. +++ b/git-store-meta.pl
  10. @@ -600,7 +600,7 @@ sub install_hooks {
  11. my $mask = umask; if (!defined($mask)) { $mask = 0022; }
  12. my $mode = 0777 & ~$mask;
  13. my $t;
  14. - my $s = escapeshellarg($GIT_STORE_META_APP . ".pl");
  15. + my $s = escapeshellarg($GIT_STORE_META_APP);
  16. my $f = defined($argv{'target'}) ? " -t " . escapeshellarg($argv{'target'}) : "";
  17. my $f2 = escapeshellarg(defined($argv{'target'}) ? $argv{'target'} : $GIT_STORE_META_FILENAME);