Skip to content
Snippets Groups Projects
Commit 4b3cd7e6 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Debug

parent 4381dde8
No related branches found
No related tags found
2 merge requests!679Automated merge from preview to main,!658ignore-file-size-gitlfs
This commit is part of merge request !658. Comments created here will be created in the context of that merge request.
...@@ -35,11 +35,10 @@ large_files_present=false ...@@ -35,11 +35,10 @@ large_files_present=false
branch="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-preview}" branch="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-preview}"
source_hash=`git merge-base HEAD "$branch"` source_hash=`git merge-base HEAD "$branch"`
gitlfsfiles=$(git lfs ls-files -n)
for f in $(git diff $source_hash --name-only); do for f in $(git diff $source_hash --name-only); do
if [[ "$gitlfsfiles" =~ .*"$f".* ]]; then if [[ "$f" =~ .*".webm" ]] || [[ "$f" =~ .*".mp4" ]] ; then
echo "It's there." echo "Skip file in webm or mp4 format cause it is in git lfs."
continue
fi fi
fs=$(wc -c $f | awk '{print $1}') fs=$(wc -c $f | awk '{print $1}')
if [ $fs -gt 1048576 ]; then if [ $fs -gt 1048576 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment