Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

precommit: fix shell quoting in filter-branch env-filter

Use double quotes instead of single quotes for author name comparisons
inside the single-quoted env-filter string. Single quotes cannot be
nested inside single-quoted strings.

+1 -1
+1 -1
lib/precommit.ml
··· 354 354 (* Build env-filter to replace AI authors with current user *) 355 355 let author_conditions = 356 356 ai_author_patterns 357 - |> List.map (fun a -> Printf.sprintf "\"$GIT_AUTHOR_NAME\" = '%s'" a) 357 + |> List.map (fun a -> Printf.sprintf "\"$GIT_AUTHOR_NAME\" = \"%s\"" a) 358 358 |> String.concat " -o " 359 359 in 360 360 let env_filter =