summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-17 23:19:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-17 23:19:08 (GMT)
commitd4a682d42f227be74c49d96eca9b86e35236f7a3 (patch)
treef641389ac42b81812ac615a2f249a7e21ca67ade /contrib
parentef6e8151335055d9a4b9067fb75f92801d4454ac (diff)
parent7eeda8b8214bfd171f9ed1265ecc5bfa1d06c607 (diff)
downloadgit-d4a682d42f227be74c49d96eca9b86e35236f7a3.zip
git-d4a682d42f227be74c49d96eca9b86e35236f7a3.tar.gz
git-d4a682d42f227be74c49d96eca9b86e35236f7a3.tar.bz2
Merge branch 'ls/filter-process' into maint
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();