Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ed91b678
Commit
ed91b678
authored
Aug 01, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix repository mirroring calling path_with_namespace
parent
27bc2178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/models/concerns/repository_mirroring.rb
app/models/concerns/repository_mirroring.rb
+3
-3
No files found.
app/models/concerns/repository_mirroring.rb
View file @
ed91b678
...
...
@@ -4,11 +4,11 @@ module RepositoryMirroring
end
def
push_remote_branches
(
remote
,
branches
)
gitlab_shell
.
push_remote_branches
(
storage_path
,
path_with_namespace
,
remote
,
branches
)
gitlab_shell
.
push_remote_branches
(
storage_path
,
disk_path
,
remote
,
branches
)
end
def
delete_remote_branches
(
remote
,
branches
)
gitlab_shell
.
delete_remote_branches
(
storage_path
,
path_with_namespace
,
remote
,
branches
)
gitlab_shell
.
delete_remote_branches
(
storage_path
,
disk_path
,
remote
,
branches
)
end
def
set_remote_as_mirror
(
name
)
...
...
@@ -28,7 +28,7 @@ module RepositoryMirroring
end
def
remote_tags
(
remote
)
gitlab_shell
.
list_remote_tags
(
storage_path
,
path_with_namespace
,
remote
).
map
do
|
name
,
target
|
gitlab_shell
.
list_remote_tags
(
storage_path
,
disk_path
,
remote
).
map
do
|
name
,
target
|
target_commit
=
Gitlab
::
Git
::
Commit
.
find
(
raw_repository
,
target
)
Gitlab
::
Git
::
Tag
.
new
(
raw_repository
,
name
,
target
,
target_commit
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment