@@ -51,12 +51,12 @@ func TestTrackOnEmptyRepository(t *testing.T) {
51
51
cmd .Before (func () {
52
52
// write attributes file in .git
53
53
path := filepath .Join (".gitattributes" )
54
- repo .WriteFile (path , "*.mov filter=lfs -crlf\n " )
54
+ repo .WriteFile (path , "*.mov filter=lfs diff=lfs merge=lfs -crlf\n " )
55
55
})
56
56
57
57
cmd .After (func () {
58
58
// assert path was added
59
- assert .Equal (t , "*.mov filter=lfs -crlf\n *.gif filter=lfs -crlf\n " , repo .ReadFile (".gitattributes" ))
59
+ assert .Equal (t , "*.mov filter=lfs diff=lfs merge=lfs -crlf\n *.gif filter=lfs diff=lfs merge =lfs -crlf\n " , repo .ReadFile (".gitattributes" ))
60
60
61
61
expected := "Listing tracked paths\n *.mov (.gitattributes)\n *.gif (.gitattributes)\n "
62
62
@@ -82,14 +82,12 @@ func TestTrackWithoutTrailingLinebreak(t *testing.T) {
82
82
cmd .Output = "Tracking *.gif"
83
83
84
84
cmd .Before (func () {
85
- // write attributes file in .git
86
- path := filepath .Join (".gitattributes" )
87
- repo .WriteFile (path , "*.mov filter=lfs -crlf" )
85
+ repo .WriteFile (".gitattributes" , "*.mov filter=lfs -crlf" )
88
86
})
89
87
90
88
cmd .After (func () {
91
89
// assert path was added
92
- assert .Equal (t , "*.mov filter=lfs -crlf\n *.gif filter=lfs -crlf\n " , repo .ReadFile (".gitattributes" ))
90
+ assert .Equal (t , "*.mov filter=lfs -crlf\n *.gif filter=lfs diff=lfs merge=lfs -crlf\n " , repo .ReadFile (".gitattributes" ))
93
91
94
92
expected := "Listing tracked paths\n *.mov (.gitattributes)\n *.gif (.gitattributes)\n "
95
93
0 commit comments