Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-shell
Commits
4599d643
Commit
4599d643
authored
Nov 11, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit with non-zero status when import-repository fails
parent
79fdf65c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
lib/gitlab_projects.rb
lib/gitlab_projects.rb
+10
-6
No files found.
lib/gitlab_projects.rb
View file @
4599d643
...
...
@@ -154,19 +154,23 @@ class GitlabProjects
Timeout
.
timeout
(
timeout
)
do
Process
.
wait
(
pid
)
end
return
false
unless
$?
.
exitstatus
.
zero?
rescue
Timeout
::
Error
$logger
.
error
"Importing project
#{
@project_name
}
from <
#{
masked_source
}
> failed due to timeout."
Process
.
kill
(
'KILL'
,
pid
)
Process
.
wait
FileUtils
.
rm_rf
(
full_path
)
false
else
self
.
class
.
create_hooks
(
full_path
)
# The project was imported successfully.
# Remove the origin URL since it may contain password.
remove_origin_in_repo
return
false
end
self
.
class
.
create_hooks
(
full_path
)
# The project was imported successfully.
# Remove the origin URL since it may contain password.
remove_origin_in_repo
true
end
# Move repository from one directory to another
...
...
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