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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
80242f24
Commit
80242f24
authored
Jan 04, 2018
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide hooks stuff
parent
44d15e41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
lib/gitlab/import_export/command_line_util.rb
lib/gitlab/import_export/command_line_util.rb
+1
-0
lib/gitlab/import_export/repo_restorer.rb
lib/gitlab/import_export/repo_restorer.rb
+1
-3
No files found.
lib/gitlab/import_export/command_line_util.rb
View file @
80242f24
...
...
@@ -17,6 +17,7 @@ module Gitlab
def
git_clone_bundle
(
repo_path
:,
bundle_path
:)
execute
(
%W(
#{
git_bin_path
}
clone --bare --
#{
bundle_path
}
#{
repo_path
}
)
)
Gitlab
::
Git
::
Repository
.
create_hooks
(
repo_path
,
File
.
expand_path
(
Gitlab
.
config
.
gitlab_shell
.
hooks_path
))
end
def
mkdir_p
(
path
)
...
...
lib/gitlab/import_export/repo_restorer.rb
View file @
80242f24
...
...
@@ -13,9 +13,7 @@ module Gitlab
def
restore
return
true
unless
File
.
exist?
(
@path_to_bundle
)
repo_path
=
@project
.
repository
.
path_to_repo
git_clone_bundle
(
repo_path:
repo_path
,
bundle_path:
@path_to_bundle
)
Gitlab
::
Git
::
Repository
.
create_hooks
(
repo_path
,
File
.
expand_path
(
Gitlab
.
config
.
gitlab_shell
.
hooks_path
))
git_clone_bundle
(
repo_path:
@project
.
repository
.
path_to_repo
,
bundle_path:
@path_to_bundle
)
rescue
=>
e
@shared
.
error
(
e
)
false
...
...
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