Skip to content
Snippets Groups Projects

Add routes to allow git actions on snippet repositories

All threads resolved!
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -279,7 +279,7 @@ def archive_metadata(ref, storage_path, format = "tar.gz", append_sha:, path: ni
@@ -279,7 +279,7 @@ def archive_metadata(ref, storage_path, format = "tar.gz", append_sha:, path: ni
raw_repository.archive_metadata(
raw_repository.archive_metadata(
ref,
ref,
storage_path,
storage_path,
project.path,
project&.path,
format,
format,
append_sha: append_sha,
append_sha: append_sha,
path: path
path: path
@@ -451,7 +451,7 @@ def after_import
@@ -451,7 +451,7 @@ def after_import
# It can be reenabled for specific tests via:
# It can be reenabled for specific tests via:
#
#
# allow(DetectRepositoryLanguagesWorker).to receive(:perform_async).and_call_original
# allow(DetectRepositoryLanguagesWorker).to receive(:perform_async).and_call_original
DetectRepositoryLanguagesWorker.perform_async(project.id)
DetectRepositoryLanguagesWorker.perform_async(project.id) if project
end
end
# Runs code after a new commit has been pushed.
# Runs code after a new commit has been pushed.
@@ -958,6 +958,7 @@ def fetch_as_mirror(url, forced: false, refmap: :all_refs, remote_name: nil, pru
@@ -958,6 +958,7 @@ def fetch_as_mirror(url, forced: false, refmap: :all_refs, remote_name: nil, pru
# rubocop:disable Gitlab/RailsLogger
# rubocop:disable Gitlab/RailsLogger
def async_remove_remote(remote_name)
def async_remove_remote(remote_name)
return unless remote_name
return unless remote_name
 
return unless project
job_id = RepositoryRemoveRemoteWorker.perform_async(project.id, remote_name)
job_id = RepositoryRemoveRemoteWorker.perform_async(project.id, remote_name)
Loading