Commit 66042b86 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'sh-update-git-config-for-forks' into 'master'

Ensure .git/config is updated for forks

See merge request gitlab-org/gitlab!35305
parents 47079127 fc408e8b
......@@ -1798,6 +1798,7 @@ class Project < ApplicationRecord
after_create_default_branch
join_pool_repository
refresh_markdown_cache!
write_repository_config
end
def update_project_counter_caches
......
---
title: Ensure .git/config is updated for forks
merge_request: 35305
author:
type: fixed
......@@ -4663,6 +4663,7 @@ RSpec.describe Project do
expect(project).to receive(:refresh_markdown_cache!)
expect(InternalId).to receive(:flush_records!).with(project: project)
expect(DetectRepositoryLanguagesWorker).to receive(:perform_async).with(project.id)
expect(project).to receive(:write_repository_config)
project.after_import
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment