diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-12-27 00:11:42 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-27 00:11:42 -0800 |
commit | 08721a056b0370e0de002162dfc5578548c0c116 (patch) | |
tree | c185a1dbb4a7762543126350c4a55a3cfa16f59b /contrib | |
parent | Merge branch 'bw/transport-protocol-policy' (diff) | |
parent | t0021: fix flaky test (diff) | |
download | tgif-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-x | contrib/long-running-filter/example.pl | 8 |
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(); |