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
Tatuya Kamada
gitlab-ce
Commits
2c8a46e0
Commit
2c8a46e0
authored
Jan 05, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix backup/restore path_to_repo
parent
891bc414
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/tasks/gitlab/backup.rake
lib/tasks/gitlab/backup.rake
+2
-2
No files found.
lib/tasks/gitlab/backup.rake
View file @
2c8a46e0
...
...
@@ -134,7 +134,7 @@ namespace :gitlab do
# Build a destination path for backup
path_to_bundle
=
File
.
join
(
backup_path_repo
,
project
.
path_with_namespace
+
".bundle"
)
if
Kernel
.
system
(
"cd
#{
project
.
path_to_repo
}
> /dev/null 2>&1 && git bundle create
#{
path_to_bundle
}
--all > /dev/null 2>&1"
)
if
Kernel
.
system
(
"cd
#{
project
.
repository
.
path_to_repo
}
> /dev/null 2>&1 && git bundle create
#{
path_to_bundle
}
--all > /dev/null 2>&1"
)
puts
"[DONE]"
.
green
else
puts
"[FAILED]"
.
red
...
...
@@ -158,7 +158,7 @@ namespace :gitlab do
# Build a backup path
path_to_bundle
=
File
.
join
(
backup_path_repo
,
project
.
path_with_namespace
+
".bundle"
)
if
Kernel
.
system
(
"git clone --bare
#{
path_to_bundle
}
#{
project
.
path_to_repo
}
> /dev/null 2>&1"
)
if
Kernel
.
system
(
"git clone --bare
#{
path_to_bundle
}
#{
project
.
repository
.
path_to_repo
}
> /dev/null 2>&1"
)
puts
"[DONE]"
.
green
else
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