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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
fe6329aa
Commit
fe6329aa
authored
Oct 30, 2019
by
John Cai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs on how to enable partial clones
parent
76dc18c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
doc/topics/git/partial_clone.md
doc/topics/git/partial_clone.md
+12
-8
No files found.
doc/topics/git/partial_clone.md
View file @
fe6329aa
...
@@ -39,16 +39,20 @@ Follow [Git for enormous repositories](https://gitlab.com/groups/gitlab-org/-/ep
...
@@ -39,16 +39,20 @@ Follow [Git for enormous repositories](https://gitlab.com/groups/gitlab-org/-/ep
## Enabling partial clone
## Enabling partial clone
GitLab 12.1 uses Git 2.21.0 which has an arbitrary file access security
> [Introduced](https://gitlab.com/gitlab-org/gitaly/issues/1553) in GitLab 12.4.
vulnerability when
`uploadpack.allowFilter`
is enabled, and should not be
enabled in production environments.
A feature flag is planned to enable
`uploadpack.allowFilter`
and
To enable partial clone, use the
[
feature flags API
](
../../api/features.md
)
.
`uploadpack.allowAnySHA1InWant`
once the version of Git used by GitLab has been
For example:
updated to Git 2.22.0.
Follow
[
this issue
](
https://gitlab.com/gitlab-org/gitaly/issues/1553
)
for
```
sh
updated.
curl
--data
"value=true"
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/features/gitaly_upload_pack_filter
```
Alternatively, flip the switch and enable the feature flag:
```
ruby
Feature
.
enable
(
:gitaly_upload_pack_filter
)
```
## Excluding objects by size
## Excluding objects by size
...
...
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