Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ea2bd9cb
Commit
ea2bd9cb
authored
Jun 07, 2018
by
Francisco Javier López
Committed by
Douwe Maan
Jun 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add git filter flag only if it is supported
parent
e114c6fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lib/gitlab/git/lfs_changes.rb
lib/gitlab/git/lfs_changes.rb
+5
-1
No files found.
lib/gitlab/git/lfs_changes.rb
View file @
ea2bd9cb
...
@@ -39,7 +39,11 @@ module Gitlab
...
@@ -39,7 +39,11 @@ module Gitlab
end
end
def
git_all_pointers
def
git_all_pointers
params
=
{
options:
[
"--filter=blob:limit=
#{
Gitlab
::
Git
::
Blob
::
LFS_POINTER_MAX_SIZE
}
"
],
require_path:
true
}
params
=
{
require_path:
true
}
if
Gitlab
::
Git
.
version
>=
Gitlab
::
VersionInfo
.
parse
(
'2.16.0'
)
params
[
:options
]
=
[
"--filter=blob:limit=
#{
Gitlab
::
Git
::
Blob
::
LFS_POINTER_MAX_SIZE
}
"
]
end
rev_list
.
all_objects
(
params
)
do
|
object_ids
|
rev_list
.
all_objects
(
params
)
do
|
object_ids
|
Gitlab
::
Git
::
Blob
.
batch_lfs_pointers
(
@repository
,
object_ids
)
Gitlab
::
Git
::
Blob
.
batch_lfs_pointers
(
@repository
,
object_ids
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment