3 . "$(dirname "$0")/testlib.sh"
5 begin_test "filter-branch (git-lfs/git-lfs#1773)"
9 reponame="filter-branch"
10 setup_remote_repo "$reponame"
11 clone_repo "$reponame" "$reponame"
13 contents_a="contents (a)"
14 printf "$contents_a" > a.dat
16 git commit -m "add a.dat"
18 contents_b="contents (b)"
19 printf "$contents_b" > b.dat
21 git commit -m "add b.dat"
23 contents_c="contents (c)"
24 printf "$contents_c" > c.dat
26 git commit -m "add c.dat"
28 git filter-branch -f --prune-empty \
31 git rm --cached -r -q .
34 ' --tag-name-filter cat -- --all
37 assert_pointer "master" "a.dat" "$(calc_oid "$contents_a")" 12
38 assert_pointer "master" "b.dat" "$(calc_oid "$contents_b")" 12
39 assert_pointer "master" "c.dat" "$(calc_oid "$contents_c")" 12