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
1
Merged
Martin Schroschk
requested to merge
ignore-file-size-gitlfs
into
preview
2 years ago
Overview
4
Commits
10
Pipelines
0
Changes
1
Expand
Resolves
#368 (closed)
Edited
2 years ago
by
Jan Frenzel
0
0
Merge request reports
Viewing commit
4381dde8
Prev
Next
Show latest version
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4381dde8
Debug
· 4381dde8
Martin Schroschk
authored
2 years ago
doc.zih.tu-dresden.de/util/check-filesize.sh
+
5
−
4
Options
@@ -35,11 +35,12 @@ large_files_present=false
branch
=
"origin/
${
CI_MERGE_REQUEST_TARGET_BRANCH_NAME
:-
preview
}
"
source_hash
=
`
git merge-base HEAD
"
$branch
"
`
echo
"===="
git diff
$source_hash
--name-only
echo
"===="
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
echo
"It's there."
fi
fs
=
$(
wc
-c
$f
|
awk
'{print $1}'
)
if
[
$fs
-gt
1048576
]
;
then
echo
$f
'is over 1M ('
$fs
' bytes)'
Loading