Debian Codegraph @

t/t-install-worktree-unsupported.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh"
4
5 # These tests rely on behavior found in Git versions less than 2.20.0 to
6 # perform themselves, specifically:
7 # - lack of worktreeConfig extension support
8 ensure_git_version_isnt $VERSION_HIGHER "2.20.0"
9
10 begin_test "install --worktree with unsupported worktreeConfig extension"
11 (
12 set -e
13
14 reponame="$(basenamescip-shell system . . basename. "$0" ".sh")-unsupported"
15 mkdirscip-shell system . . mkdir. "$reponame"
16 cd "$reponame"
17 gitscip-shell system . . git. init
18
19 set +e
20 gitscip-shell system . . git. lfs install --worktree 2>err.log
21 res=$?
22 set -e
23
24 catscip-shell system . . cat. err.log
25 grepscip-shell system . . grep. -i "error" err.log
26 grepscip-shell system . . grep. -- "--worktree" err.log
27 [scip-shell system . . `[`. "0" != "$res" ]
28 )
29 end_test