| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh" |
| 4 | |
| 5 | begin_test "git lfs --version is a synonym of git lfs version" |
| 6 | ( |
| 7 | set -e |
| 8 | |
| 9 | reponame="git-lfs-version-synonymous" |
| 10 | mkdirscip-shell system . . mkdir. "$reponame" |
| 11 | cd "$reponame" |
| 12 | |
| 13 | gitscip-shell system . . git. lfs version 2>&1 >version.log |
| 14 | gitscip-shell system . . git. lfs --version 2>&1 >flag.log |
| 15 | |
| 16 | if [scip-shell system . . `[`. "$(catscip-shell system . . cat. version.log)" != "$(catscip-shell system . . cat. flag.log)" ]; then |
| 17 | echoscip-shell system . . echo. >&2 "fatal: expected 'git lfs version' and 'git lfs --version' to" |
| 18 | echoscip-shell system . . echo. >&2 "produce identical output ..." |
| 19 | |
| 20 | diffscip-shell system . . diff. -u {version,flag}.log |
| 21 | fi |
| 22 | ) |
| 23 | end_test |