Skip to content

Commit cdec9f2

Browse files
committed
t-clone: add .gitattributes before pushing
In two of our test repositories in this file, we never commit the `.gitattributes` file and instead rely on the fact that `git lfs clone` sometimes processes all files in the working tree to determine which are pointer files. This is inefficient and we don't want to rely on this behaviour, especially since it differs from that of `git clone`, so fix our tests so that we explicitly commit the `.gitattributes` file.
1 parent 3d1ca20 commit cdec9f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t-clone.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ begin_test "clone"
1414

1515
git lfs track "*.dat" 2>&1 | tee track.log
1616
grep "Tracking \"\*.dat\"" track.log
17+
git add .gitattributes
18+
git commit -m "Track *.dat"
1719

1820
# generate some test data & commits with random LFS data
1921
echo "[
@@ -732,6 +734,8 @@ begin_test "clone (HTTP server/proxy require cookies)"
732734

733735
git lfs track "*.dat" 2>&1 | tee track.log
734736
grep "Tracking \"\*.dat\"" track.log
737+
git add .gitattributes
738+
git commit -m "Track *.dat"
735739

736740
# generate some test data & commits with random LFS data
737741
echo "[

0 commit comments

Comments
 (0)