| 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 GIT_TERMINAL_PROMPT to test properly |
| 6 | ensure_git_version_isnt $VERSION_LOWER "2.3.0" |
| 7 | |
| 8 | begin_test "download authenticated object" |
| 9 | ( |
| 10 | set -e |
| 11 | reponame="$(basenamescip-shell system . . basename. "$0" ".sh")" |
| 12 | setup_remote_repo "$reponame" |
| 13 | clone_repo "$reponame" without-creds |
| 14 | |
| 15 | gitscip-shell system . . git. lfs track "*.dat" |
| 16 | printfscip-shell system . . printf. "object-authenticated" > hi.dat |
| 17 | gitscip-shell system . . git. add hi.dat |
| 18 | gitscip-shell system . . git. add .gitattributes |
| 19 | gitscip-shell system . . git. commit -m "initial commit" |
| 20 | |
| 21 | GIT_CURL_VERBOSE=1 GIT_TERMINAL_PROMPT=0 gitscip-shell system . . git. lfs push origin main |
| 22 | ) |
| 23 | end_test |