summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-27 08:11:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-27 08:11:42 (GMT)
commit08721a056b0370e0de002162dfc5578548c0c116 (patch)
treec185a1dbb4a7762543126350c4a55a3cfa16f59b /contrib
parent9d540e97267fa94d9701d3e1aa5cdf2926858472 (diff)
parent7eeda8b8214bfd171f9ed1265ecc5bfa1d06c607 (diff)
downloadgit-08721a056b0370e0de002162dfc5578548c0c116.zip
git-08721a056b0370e0de002162dfc5578548c0c116.tar.gz
git-08721a056b0370e0de002162dfc5578548c0c116.tar.bz2
Merge branch 'ls/filter-process'
Doc update. * ls/filter-process: t0021: fix flaky test docs: warn about possible '=' in clean/smudge filter process values
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/long-running-filter/example.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/long-running-filter/example.pl b/contrib/long-running-filter/example.pl
index 3945705..a677569 100755
--- a/contrib/long-running-filter/example.pl
+++ b/contrib/long-running-filter/example.pl
@@ -81,8 +81,12 @@ packet_txt_write("capability=smudge");
packet_flush();
while (1) {
- my ($command) = packet_txt_read() =~ /^command=([^=]+)$/;
- my ($pathname) = packet_txt_read() =~ /^pathname=([^=]+)$/;
+ my ($command) = packet_txt_read() =~ /^command=(.+)$/;
+ my ($pathname) = packet_txt_read() =~ /^pathname=(.+)$/;
+
+ if ( $pathname eq "" ) {
+ die "bad pathname '$pathname'";
+ }
packet_bin_read();