Debian Codegraph @

t/t-repo-format.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 begin_test "repository format version"
6 (
7 set -e
8
9 reponame="lfs-repo-version"
10 gitscip-shell system . . git. init $reponame
11 cd $reponame
12
13 [scip-shell system . . `[`. -z "$(gitscip-shell system . . git. config --local lfs.repositoryFormatVersion)" ]
14
15 gitscip-shell system . . git. lfs track '*.dat'
16
17 [scip-shell system . . `[`. "$(gitscip-shell system . . git. config --local lfs.repositoryFormatVersion)" = "0" ]
18
19 gitscip-shell system . . git. config --local lfs.repositoryFormatVersion 1
20
21 gitscip-shell system . . git. lfs track '*.bin' >output 2>&1 && exit 1
22 catscip-shell system . . cat. output
23 grepscip-shell system . . grep. "Unknown repository format version: 1" output
24
25 gitscip-shell system . . git. config --local --unset lfs.repositoryFormatVersion
26 # Verify that global settings are ignored.
27 gitscip-shell system . . git. config --global lfs.repositoryFormatVersion 1
28
29 gitscip-shell system . . git. lfs track '*.bin'
30 )
31 end_test