Show More
@@ -2273,6 +2273,7 b' def pull(request, apiuser, repoid, remot' | |||||
2273 | repo = get_repo_or_error(repoid) |
|
2273 | repo = get_repo_or_error(repoid) | |
2274 | remote_uri = Optional.extract(remote_uri) |
|
2274 | remote_uri = Optional.extract(remote_uri) | |
2275 | remote_uri_display = remote_uri or repo.clone_uri_hidden |
|
2275 | remote_uri_display = remote_uri or repo.clone_uri_hidden | |
|
2276 | sync_large_objects = Optional.extract(sync_large_objects) | |||
2276 | if not has_superadmin_permission(apiuser): |
|
2277 | if not has_superadmin_permission(apiuser): | |
2277 | _perms = ('repository.admin',) |
|
2278 | _perms = ('repository.admin',) | |
2278 | validate_repo_permissions(apiuser, repoid, repo, _perms) |
|
2279 | validate_repo_permissions(apiuser, repoid, repo, _perms) |
@@ -1040,8 +1040,11 b' class TestLargeFileRepo(object):' | |||||
1040 |
|
1040 | |||
1041 | oid = '7b331c02e313c7599d5a90212e17e6d3cb729bd2e1c9b873c302a63c95a2f9bf' |
|
1041 | oid = '7b331c02e313c7599d5a90212e17e6d3cb729bd2e1c9b873c302a63c95a2f9bf' | |
1042 | oid_path = os.path.join(lfs_store, oid) |
|
1042 | oid_path = os.path.join(lfs_store, oid) | |
|
1043 | # Todo: oid path depends on LFSOidStorage.store_suffix. Once it will be changed update below line accordingly | |||
1043 | oid_destination = os.path.join( |
|
1044 | oid_destination = os.path.join( | |
1044 | conf.get('vcs_git_lfs', 'store_location'), oid) |
|
1045 | conf.get('vcs_git_lfs', 'store_location'), f'objects/{oid[:2]}/{oid[2:4]}/{oid}') | |
|
1046 | ||||
|
1047 | os.makedirs(os.path.dirname(oid_destination)) | |||
1045 | shutil.copy(oid_path, oid_destination) |
|
1048 | shutil.copy(oid_path, oid_destination) | |
1046 |
|
1049 | |||
1047 | node = tip.get_node('1MB.zip') |
|
1050 | node = tip.get_node('1MB.zip') |
General Comments 0
You need to be logged in to leave comments.
Login now