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 | 9d540e97267fa94d9701d3e1aa5cdf2926858472 (diff) | |
parent | 7eeda8b8214bfd171f9ed1265ecc5bfa1d06c607 (diff) | |
download | git-08721a056b0370e0de002162dfc5578548c0c116.tar.gz git-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 39457055a..a677569dd 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(); |