aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Abel <jacobabel@nullpo.dev>2023-07-26 21:42:18 +0000
committerJunio C Hamano <gitster@pobox.com>2023-07-26 14:49:02 -0700
commit9111ea1cbeba0861ea1c90e16bea980be4910d8c (patch)
treeddb431a3e105127e7f0a6f2f77c5212f78cd0308
parentworktree add: emit warn when there is a bad HEAD (diff)
downloadgit-9111ea1cbeba0861ea1c90e16bea980be4910d8c.tar.gz
git-9111ea1cbeba0861ea1c90e16bea980be4910d8c.zip
t2400: drop no-op `--sq` from rev-parse call
Signed-off-by: Jacob Abel <jacobabel@nullpo.dev> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t2400-worktree-add.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t2400-worktree-add.sh b/t/t2400-worktree-add.sh
index 0ac468e69e..e106540c6d 100755
--- a/t/t2400-worktree-add.sh
+++ b/t/t2400-worktree-add.sh
@@ -995,7 +995,7 @@ test_dwim_orphan () {
grep "$invalid_ref_regex" actual &&
! grep "$orphan_hint" actual
else
- headpath=$(git $dashc_args rev-parse --sq --path-format=absolute --git-path HEAD) &&
+ headpath=$(git $dashc_args rev-parse --path-format=absolute --git-path HEAD) &&
headcontents=$(cat "$headpath") &&
grep "HEAD points to an invalid (or orphaned) reference" actual &&
grep "HEAD path:\s*.$headpath." actual &&