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
Boxiang Sun
gitlab-ce
Commits
b155a44e
Commit
b155a44e
authored
Feb 26, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'backup_restore_hooks_bug' into 'master'
Fix backup/restore git hooks bug
parents
fd3ab695
91c70c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/backup/repository.rb
lib/backup/repository.rb
+1
-2
No files found.
lib/backup/repository.rb
View file @
b155a44e
...
@@ -72,8 +72,7 @@ module Backup
...
@@ -72,8 +72,7 @@ module Backup
end
end
print
'Put GitLab hooks in repositories dirs'
.
yellow
print
'Put GitLab hooks in repositories dirs'
.
yellow
gitlab_shell_user_home
=
File
.
expand_path
(
"~
#{
Gitlab
.
config
.
gitlab_shell
.
ssh_user
}
"
)
if
system
(
"
#{
Gitlab
.
config
.
gitlab_shell
.
path
}
/support/rewrite-hooks.sh"
,
Gitlab
.
config
.
gitlab_shell
.
repos_path
)
if
system
(
"
#{
gitlab_shell_user_home
}
/gitlab-shell/support/rewrite-hooks.sh"
,
Gitlab
.
config
.
gitlab_shell
.
repos_path
)
puts
" [DONE]"
.
green
puts
" [DONE]"
.
green
else
else
puts
" [FAILED]"
.
red
puts
" [FAILED]"
.
red
...
...
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