3 . "$(dirname "$0")/testlib.sh"
5 reponame="$(basename "$0" ".sh")"
7 begin_test "GIT_LFS_PROGRESS"
10 setup_remote_repo "$reponame"
11 clone_repo "$reponame" repo
19 git add .gitattributes *.dat
20 git commit -m "add files"
21 git push origin master 2>&1 | tee push.log
22 grep "Uploading LFS objects: 100% (5/5), 10 B" push.log
25 GIT_LFS_PROGRESS="$TRASHDIR/progress.log" git lfs clone "$GITSERVER/$reponame" clone
27 grep "download 1/5" progress.log
28 grep "download 2/5" progress.log
29 grep "download 3/5" progress.log
30 grep "download 4/5" progress.log
31 grep "download 5/5" progress.log
33 GIT_LFS_SKIP_SMUDGE=1 git clone "$GITSERVER/$reponame" clone2
36 rm -rf "$TRASHDIR/progress.log" .git/lfs/objects
37 GIT_LFS_PROGRESS="$TRASHDIR/progress.log" git lfs fetch --all
39 grep "download 1/5" ../progress.log
40 grep "download 2/5" ../progress.log
41 grep "download 3/5" ../progress.log
42 grep "download 4/5" ../progress.log
43 grep "download 5/5" ../progress.log
45 rm -rf "$TRASHDIR/progress.log"
46 GIT_LFS_PROGRESS="$TRASHDIR/progress.log" git lfs checkout
48 grep "checkout 1/5" ../progress.log
49 grep "checkout 2/5" ../progress.log
50 grep "checkout 3/5" ../progress.log
51 grep "checkout 4/5" ../progress.log
52 grep "checkout 5/5" ../progress.log