Skip to content

Commit 14198fe

Browse files
committed
Merge pull request #2 from alokmenghrajani/alok/CVE-2015-7545
Fixes the same issue as CVE-2015-7545.
2 parents 31caf7f + a8a33f1 commit 14198fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.rubocop_todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Metrics/AbcSize:
1313
# Offense count: 1
1414
# Configuration parameters: CountComments.
1515
Metrics/ClassLength:
16-
Max: 121
16+
Max: 125
1717

1818
# Offense count: 38
1919
# Configuration parameters: AllowURI, URISchemes.

lib/git-fastclone.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ def store_updated_repo(url, mirror, repo_name, fail_hard)
247247
# moment means we only need to synchronize our own threads in case a single
248248
# submodule url is included twice via multiple dependency paths
249249
def with_git_mirror(url)
250+
if url.lstrip.start_with?('ext::')
251+
logger.info("Skipping #{url} for security purpose (CVE-2015-7545)") if logger
252+
return
253+
end
254+
250255
update_reference_repo(url, true)
251256

252257
# Sometimes remote updates involve re-packing objects on a different thread

0 commit comments

Comments
 (0)