fix(LFS): fixed pull_changes method to support a new (sync_large_objects) flag, updated all parts that will use a new flag. Fixes: RCCE-8
This commit is contained in:
parent
8048eb5a1e
commit
840ea1daef
5 changed files with 10 additions and 8 deletions
|
|
@ -2227,7 +2227,7 @@ def revoke_user_group_permission(request, apiuser, repoid, usergroupid):
|
|||
|
||||
|
||||
@jsonrpc_method()
|
||||
def pull(request, apiuser, repoid, remote_uri=Optional(None)):
|
||||
def pull(request, apiuser, repoid, remote_uri=Optional(None), sync_large_objects=Optional(False)):
|
||||
"""
|
||||
Triggers a pull on the given repository from a remote location. You
|
||||
can use this to keep remote repositories up-to-date.
|
||||
|
|
@ -2244,6 +2244,8 @@ def pull(request, apiuser, repoid, remote_uri=Optional(None)):
|
|||
:type repoid: str or int
|
||||
:param remote_uri: Optional remote URI to pass in for pull
|
||||
:type remote_uri: str
|
||||
:param sync_large_objects: Optional flag for pulling LFS objects.
|
||||
:type sync_large_objects: bool
|
||||
|
||||
Example output:
|
||||
|
||||
|
|
@ -2277,7 +2279,7 @@ def pull(request, apiuser, repoid, remote_uri=Optional(None)):
|
|||
|
||||
try:
|
||||
ScmModel().pull_changes(
|
||||
repo.repo_name, apiuser.username, remote_uri=remote_uri)
|
||||
repo.repo_name, apiuser.username, remote_uri=remote_uri, sync_large_objects=sync_large_objects)
|
||||
return {
|
||||
'msg': 'Pulled from url `{}` on repo `{}`'.format(
|
||||
remote_uri_display, repo.repo_name),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue