]> git.ipfire.org Git - thirdparty/git.git/commit
t/lib-commit-graph.sh: avoid sub-shell in `graph_git_behavior()`
authorTaylor Blau <me@ttaylorr.com>
Mon, 24 Jul 2023 16:39:34 +0000 (12:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Jul 2023 21:35:22 +0000 (14:35 -0700)
commitf1b9cebc8bdc01c5b8643fac9f78f2962df82cf3
treefea99963cadd787ff838352ff774509f4bcc1bcf
parent749f126b296f1147c7994de41c93a0afb9a250dd
t/lib-commit-graph.sh: avoid sub-shell in `graph_git_behavior()`

In a previous commit, we introduced a sub-shell in the implementation of
`graph_git_behavior()`, in order to allow us to pass `-C "$DIR"`
directly to the git processes spawned by `graph_git_two_modes()`.

Now that its callers are always operating from the "$TRASH_DIRECTORY"
instead of one of its sub-directories, we can drop the inner sub-shell,
as it is no longer required.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-commit-graph.sh