update test to try adding the file twice
This commit is contained in:
parent
4e27a32494
commit
7bbd60ddc7
@ -12,8 +12,24 @@ begin_test "track"
|
|||||||
cd track
|
cd track
|
||||||
git init
|
git init
|
||||||
|
|
||||||
git lfs track "*.jpg"
|
# track *.jpg once
|
||||||
cat .gitattributes | grep "*.jpg"
|
git lfs track "*.jpg" | grep "Tracking \*.jpg"
|
||||||
|
numjpg=$(cat .gitattributes | grep "\*.jpg" | wc -l)
|
||||||
|
if [ "$(printf "%d" "$numjpg")" != "1" ]; then
|
||||||
|
echo "wrong number of jpgs"
|
||||||
|
cat .gitattributes
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# track *.jpg again
|
||||||
|
git lfs track "*.jpg" | grep "*.jpg already supported"
|
||||||
|
numjpg=$(cat .gitattributes | grep "\*.jpg" | wc -l)
|
||||||
|
if [ "$(printf "%d" "$numjpg")" != "1" ]; then
|
||||||
|
echo "wrong number of jpgs"
|
||||||
|
cat .gitattributes
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p a/b
|
mkdir -p a/b
|
||||||
|
|
||||||
echo "*.mov filter=lfs -crlf" > .git/info/attributes
|
echo "*.mov filter=lfs -crlf" > .git/info/attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user