Skip to content

Commit a2174c9

Browse files
committed
Fix worktree test
1 parent a1bef30 commit a2174c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test-worktree.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
. "test/testlib.sh"
44

55
ensure_git_version_isnt $VERSION_LOWER "2.5.0"
6+
envInitConfig='git config filter.lfs.smudge = "git-lfs smudge %f"
7+
git config filter.lfs.clean = "git-lfs clean %f"'
68

79
begin_test "git worktree"
810
(
@@ -26,7 +28,8 @@ TempDir=$TRASHDIR/$reponame/.git/lfs/tmp
2628
ConcurrentTransfers=3
2729
BatchTransfer=true
2830
$(env | grep "^GIT")
29-
" "$(git lfs version)" "$(git version)")
31+
%s
32+
" "$(git lfs version)" "$(git version)" "$envInitConfig")
3033
actual=$(git lfs env)
3134
[ "$expected" = "$actual" ]
3235

@@ -46,7 +49,8 @@ TempDir=$TRASHDIR/$reponame/.git/worktrees/$worktreename/lfs/tmp
4649
ConcurrentTransfers=3
4750
BatchTransfer=true
4851
$(env | grep "^GIT")
49-
" "$(git lfs version)" "$(git version)")
52+
%s
53+
" "$(git lfs version)" "$(git version)" "$envInitConfig")
5054
actual=$(git lfs env)
5155
[ "$expected" = "$actual" ]
5256
)

0 commit comments

Comments
 (0)