aboutsummaryrefslogtreecommitdiff
path: root/misc/git-store-meta/change-name-in-git-hooks.patch
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2020-10-30 23:41:43 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-31 11:15:30 +0700
commitfb9002e63441122eaf73f752622bc5fbef1eebf1 (patch)
treea9b12a33d71f7447a939be0dbbe0f7e0cf92fafb /misc/git-store-meta/change-name-in-git-hooks.patch
parent17e3d72d9d16e4eeadd8048f64b12e972384a35c (diff)
misc/git-store-meta: Added (metadata storing and applying for Git)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/git-store-meta/change-name-in-git-hooks.patch')
-rw-r--r--misc/git-store-meta/change-name-in-git-hooks.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/git-store-meta/change-name-in-git-hooks.patch b/misc/git-store-meta/change-name-in-git-hooks.patch
new file mode 100644
index 000000000000..429d36c8772f
--- /dev/null
+++ b/misc/git-store-meta/change-name-in-git-hooks.patch
@@ -0,0 +1,21 @@
+commit 95bce8afd6973b00232f3cb7cc286d3994a07a13
+Author: Andrzej Telszewski <atelszewski@gmail.com>
+Date: Sat Oct 24 12:51:20 2020 +0200
+
+ Change how git-store-meta is called from Git hooks
+
+ Call `git-store-meta` instead of `git-store-meta.pl`.
+
+diff --git a/git-store-meta.pl b/git-store-meta.pl
+index ddc0024..b0d0d37 100755
+--- a/git-store-meta.pl
++++ b/git-store-meta.pl
+@@ -600,7 +600,7 @@ sub install_hooks {
+ my $mask = umask; if (!defined($mask)) { $mask = 0022; }
+ my $mode = 0777 & ~$mask;
+ my $t;
+- my $s = escapeshellarg($GIT_STORE_META_APP . ".pl");
++ my $s = escapeshellarg($GIT_STORE_META_APP);
+ my $f = defined($argv{'target'}) ? " -t " . escapeshellarg($argv{'target'}) : "";
+ my $f2 = escapeshellarg(defined($argv{'target'}) ? $argv{'target'} : $GIT_STORE_META_FILENAME);
+