aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2025-11-27 22:46:43 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2025-11-28 00:53:56 +0000
commit6049f1bc210653b126974961b29d6eb71a6c6709 (patch)
treef0f1c8612ffbdc2b71429c8a165a596eac72b070
parenta3b0902d73901e7243103e60cf78c53cd7f566a1 (diff)
git-arc: Fix failure to call arc() function
As of b3e53f9fff11, git-arc attempted to call the internal shell function, arc(), using env(1). However, because env(1) does not call shell functions, it actually attempted to run the arc utility. This led to errors: % git arc create -r xxx HEAD env: arc: No such file or directory git-arc: could not create Phabricator diff This change removes the unnecessary use of env(1), so the arc() function is correctly called. Reviewed by: markj Fixes: b3e53f9fff11 ("git-arc: Don't require devel/arcanist") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53972
-rwxr-xr-xtools/tools/git/git-arc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh
index eef01b75663e..8507d96fda63 100755
--- a/tools/tools/git/git-arc.sh
+++ b/tools/tools/git/git-arc.sh
@@ -315,7 +315,7 @@ create_one_review()
printf "\nSubscribers:\n" >> "$msg"
printf "%s\n" "${subscribers}" >> "$msg"
- yes | env EDITOR=true \
+ yes | EDITOR=true \
arc diff --message-file "$msg" --never-apply-patches --create \
--allow-untracked $BROWSE --head "$commit" "${commit}~"
[ $? -eq 0 ] || err "could not create Phabricator diff"