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
1
1 unresolved thread
Hide all comments
Expand
Resolves
#368 (closed)
Edited
2 years ago
by
Jan Frenzel
0
0
Merge request reports
Compare
version 8
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
Show latest version
1 file
+
1
−
6
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
doc.zih.tu-dresden.de/util/check-filesize.sh
+
1
−
6
Options
@@ -34,17 +34,12 @@
@@ -34,17 +34,12 @@
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
)
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.
# Do not check size of git lfs files.
# This is a bit "Going around your elbow to get to your ear" by assuming that lfs files are
# ending with webm or mp4
#if [[ "$f" =~ .*".webm" ]] || [[ "$f" =~ .*".mp4" ]] ; then
echo
$f
if
[[
$lfsfiles
=
~
"
$f
"
]]
;
then
if
[[
$lfsfiles
=
~
"
$f
"
]]
;
then
echo
"Skip file
${
f
}
in webm or mp4 format
cause it is a git lfs file."
echo
"Skip file
${
f
}
be
cause it is a git lfs file."
continue
continue
fi
fi
fs
=
$(
wc
-c
$f
|
awk
'{print $1}'
)
fs
=
$(
wc
-c
$f
|
awk
'{print $1}'
)
Loading