summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-12-27 00:11:42 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-12-27 00:11:42 -0800
commit08721a056b0370e0de002162dfc5578548c0c116 (patch)
treec185a1dbb4a7762543126350c4a55a3cfa16f59b /contrib
parentMerge branch 'bw/transport-protocol-policy' (diff)
parentt0021: fix flaky test (diff)
downloadtgif-08721a056b0370e0de002162dfc5578548c0c116.tar.xz
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 39457055a5..a677569ddd 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();