Imported Upstream version 2.5.0
[scm/test.git] / t / t-object-authenticated.sh
1 #!/usr/bin/env bash
2
3 . "$(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="$(basename "$0" ".sh")"
12   setup_remote_repo "$reponame"
13   clone_repo "$reponame" without-creds
14
15   git lfs track "*.dat"
16   printf "object-authenticated" > hi.dat
17   git add hi.dat
18   git add .gitattributes
19   git commit -m "initial commit"
20
21   GIT_CURL_VERBOSE=1 GIT_TERMINAL_PROMPT=0 git lfs push origin master
22 )
23 end_test