From 3e40b2384b0a808f54f7331328ee84cbaee3de98 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Wed, 29 May 2024 09:18:56 -0500 Subject: sendemail-validate: put prefix directly after -t flag On macOS the -t option must immediately precede the prefix template or else the generated temp name includes a newline (!), which causes the rest of the sendemail-validate script to fail. Signed-off-by: Gregory Anders Acked-by: Robin Jarry --- contrib/sendemail-validate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/sendemail-validate') diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate index efcce648..86b06538 100755 --- a/contrib/sendemail-validate +++ b/contrib/sendemail-validate @@ -50,7 +50,7 @@ if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1 then remote=$(git config --default origin --get sendemail.validateRemote) && ref=$(git config --default master --get sendemail.validateRemoteRef) && - worktree=$(mktemp -t -d sendemail-validate.XXXXXXX) && + worktree=$(mktemp -d -t sendemail-validate.XXXXXXX) && git worktree add -fd --checkout "$worktree" "refs/remotes/$remote/$ref" && git config --replace-all sendemail.validateWorktree "$worktree" else -- cgit