9e006ac4e2
Currently, our default branch in tests is "master". This is the Git default, but the Git default will likely change in the future, so it makes sense to update our testsuite to be explicit about the branch name. We'll ensure this continues by building against older versions of Git as well as newer versions. We use "main" for the new branch name, since that's the proposed value upstream. This commit was made entirely by automated means using the following command: git grep -l master t | xargs sed -i -e 's/master/main/g'
24 lines
542 B
Bash
Executable File
24 lines
542 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
. "$(dirname "$0")/testlib.sh"
|
|
|
|
# these tests rely on GIT_TERMINAL_PROMPT to test properly
|
|
ensure_git_version_isnt $VERSION_LOWER "2.3.0"
|
|
|
|
begin_test "download authenticated object"
|
|
(
|
|
set -e
|
|
reponame="$(basename "$0" ".sh")"
|
|
setup_remote_repo "$reponame"
|
|
clone_repo "$reponame" without-creds
|
|
|
|
git lfs track "*.dat"
|
|
printf "object-authenticated" > hi.dat
|
|
git add hi.dat
|
|
git add .gitattributes
|
|
git commit -m "initial commit"
|
|
|
|
GIT_CURL_VERBOSE=1 GIT_TERMINAL_PROMPT=0 git lfs push origin main
|
|
)
|
|
end_test
|