Skip to content

Commit

Permalink
t-clone: add .gitattributes before pushing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bk2204 committed Apr 16, 2024
1 parent 3d1ca20 commit cdec9f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/t-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ begin_test "clone"

git lfs track "*.dat" 2>&1 | tee track.log
grep "Tracking \"\*.dat\"" track.log
git add .gitattributes
git commit -m "Track *.dat"

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

git lfs track "*.dat" 2>&1 | tee track.log
grep "Tracking \"\*.dat\"" track.log
git add .gitattributes
git commit -m "Track *.dat"

# generate some test data & commits with random LFS data
echo "[
Expand Down

0 comments on commit cdec9f2

Please sign in to comment.