git-lfs/t/t-progress-meter.sh
brian m. carlson 9e006ac4e2
Rename default branch in tests to "main"
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'
2020-07-08 15:38:17 +00:00

30 lines
571 B
Bash
Executable File

#!/usr/bin/env bash
. "$(dirname "$0")/testlib.sh"
begin_test "progress meter displays positive progress"
(
set -e
reponame="progress-meter"
setup_remote_repo "$reponame"
clone_repo "$reponame" "$reponame"
git lfs track "*.dat"
git add .gitattributes
git commit -m "initial commit"
for i in `seq 1 128`; do
printf "%s" "$i" > "$i.dat"
done
git add *.dat
git commit -m "add many objects"
git push origin main 2>&1 | tee push.log
[ "0" -eq "${PIPESTATUS[0]}" ]
grep "Uploading LFS objects: 100% (128/128), 276 B" push.log
)
end_test