Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
bd94d248
Commit
bd94d248
authored
1 year ago
by
Arnaud Levy
Browse files
Options
Downloads
Patches
Plain Diff
fix le fix
parent
a7a4dccc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/models/communication/website/with_git_repository.rb
+4
-1
4 additions, 1 deletion
app/models/communication/website/with_git_repository.rb
with
4 additions
and
1 deletion
app/models/communication/website/with_git_repository.rb
+
4
−
1
View file @
bd94d248
...
...
@@ -16,7 +16,7 @@ module Communication::Website::WithGitRepository
# Synchronisation optimale d'objet indirect
def
sync_indirect_object_with_git
(
indirect_object
)
return
unless
git_repository
.
valid?
indirect_object
.
direct_sources
.
where
(
website_id:
self
.
id
).
each
do
|
direct_source
|
indirect_object
.
direct_sources
.
each
do
|
direct_source
|
add_direct_source_to_sync
(
direct_source
)
end
git_repository
.
sync!
...
...
@@ -51,6 +51,9 @@ module Communication::Website::WithGitRepository
protected
def
add_direct_source_to_sync
(
direct_source
)
# Ne pas traiter les sources d'autres sites
return
unless
direct_source
.
website_id
==
self
.
id
# Ne pas traiter les sources non synchronisables
return
unless
direct_source
.
syncable?
Communication
::
Website
::
GitFile
.
sync
self
,
direct_source
direct_source
.
recursive_dependencies
(
syncable_only:
true
).
each
do
|
object
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment