Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Merge requests
!658
ignore-file-size-gitlfs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ignore-file-size-gitlfs
ignore-file-size-gitlfs
into
preview
Overview
4
Commits
10
Pipelines
0
Changes
2
1 unresolved thread
Hide all comments
Merged
Martin Schroschk
requested to merge
ignore-file-size-gitlfs
into
preview
2 years ago
Overview
4
Commits
10
Pipelines
0
Changes
2
1 unresolved thread
Hide all comments
Expand
Resolves
#368 (closed)
Edited
2 years ago
by
Jan Frenzel
0
0
Merge request reports
Compare
preview
version 9
01e25a3a
2 years ago
version 8
d0334340
2 years ago
version 7
fc6f5359
2 years ago
version 6
acdc4b1b
2 years ago
version 5
4b3cd7e6
2 years ago
version 4
4381dde8
2 years ago
version 3
4ca914aa
2 years ago
version 2
b88cf679
2 years ago
version 1
c8bad3b5
2 years ago
preview (base)
and
latest version
latest version
252a2118
10 commits,
2 years ago
version 9
01e25a3a
9 commits,
2 years ago
version 8
d0334340
8 commits,
2 years ago
version 7
fc6f5359
7 commits,
2 years ago
version 6
acdc4b1b
6 commits,
2 years ago
version 5
4b3cd7e6
5 commits,
2 years ago
version 4
4381dde8
4 commits,
2 years ago
version 3
4ca914aa
3 commits,
2 years ago
version 2
b88cf679
2 commits,
2 years ago
version 1
c8bad3b5
1 commit,
2 years ago
2 files
+
10
−
4
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
doc.zih.tu-dresden.de/util/check-filesize.sh
+
9
−
3
Options
@@ -34,12 +34,18 @@
@@ -34,12 +34,18 @@
large_files_present
=
false
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
"
`
lfsfiles
=
$(
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
# Do not check size of git lfs files.
if
[[
$lfsfiles
=
~
"
$f
"
]]
;
then
echo
"Skip file
${
f
}
because it is a git lfs file."
continue
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
echo
$f
'is over 1M ('
$fs
' bytes)'
echo
$f
'is over 1M ('
$fs
' bytes)'
large_files_present
=
true
large_files_present
=
true
fi
fi
done
done
Loading