diff options
author | Taylor Blau <me@ttaylorr.com> | 2023-07-24 12:39:22 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-24 14:35:21 -0700 |
commit | c355b641769db757bc4187aa03f18510a289c86d (patch) | |
tree | bab6ab05965468043794c0e8860cbc1bc276b13d /git-gui/lib/diff.tcl | |
parent | 6016ee0a7130d3ad656def12d724d1525d39af9b (diff) |
t/lib-commit-graph.sh: allow `graph_read_expect()` in sub-directories
The `graph_read_expect()` function is used to ensure that the output of
the "read-graph" test helper matches certain parameters (e.g., how many
commits are in the graph, which chunks were written, etc.).
It expects the Git repository being tested to be at the current working
directory. However, a handful of t5318 tests use different repositories
stored in sub-directories. To work around this, several tests in t5318
change into the relevant repository outside of a sub-shell, altering the
context for the rest of the suite.
Prepare to remove these globally-scoped directory changes by teaching
`graph_read_expect()` to take an optional "-C dir" to specify where the
repository containing the commit-graph being tested is.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/diff.tcl')
0 files changed, 0 insertions, 0 deletions