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
4e65d085
Commit
4e65d085
authored
Nov 13, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8299 from dandric-activevideo/bug8271
Fix for #8271: Correctly restore empty repositories.
parents
6adc313a
4a5044e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lib/backup/repository.rb
lib/backup/repository.rb
+7
-1
No files found.
lib/backup/repository.rb
View file @
4e65d085
...
@@ -59,7 +59,13 @@ module Backup
...
@@ -59,7 +59,13 @@ module Backup
project
.
namespace
.
ensure_dir_exist
if
project
.
namespace
project
.
namespace
.
ensure_dir_exist
if
project
.
namespace
if
system
(
*
%W(git clone --bare
#{
path_to_bundle
(
project
)
}
#{
path_to_repo
(
project
)
}
)
,
silent
)
if
File
.
exists?
(
path_to_bundle
(
project
))
cmd
=
%W(git clone --bare
#{
path_to_bundle
(
project
)
}
#{
path_to_repo
(
project
)
}
)
else
cmd
=
%W(git init --bare
#{
path_to_repo
(
project
)
}
)
end
if
system
(
*
cmd
,
silent
)
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