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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c88ae4d1
Commit
c88ae4d1
authored
Jun 13, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make `Gitlab::Git::Repository::NoRepository` exception discoverable
parent
e191c17e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/services/geo/repository_sync_service.rb
app/services/geo/repository_sync_service.rb
+1
-1
app/services/geo/repository_update_service.rb
app/services/geo/repository_update_service.rb
+2
-2
No files found.
app/services/geo/repository_sync_service.rb
View file @
c88ae4d1
...
@@ -36,7 +36,7 @@ module Geo
...
@@ -36,7 +36,7 @@ module Geo
expire_repository_caches
expire_repository_caches
finished_at
=
DateTime
.
now
finished_at
=
DateTime
.
now
rescue
Gitlab
::
Shell
::
Error
=>
e
rescue
Gitlab
::
Git
::
Repository
::
NoRepository
,
Gitlab
::
Shell
::
Error
=>
e
Rails
.
logger
.
error
(
"
#{
self
.
class
.
name
}
: Error syncing repository for project
#{
project
.
path_with_namespace
}
:
#{
e
}
"
)
Rails
.
logger
.
error
(
"
#{
self
.
class
.
name
}
: Error syncing repository for project
#{
project
.
path_with_namespace
}
:
#{
e
}
"
)
end
end
...
...
app/services/geo/repository_update_service.rb
View file @
c88ae4d1
...
@@ -20,8 +20,8 @@ module Geo
...
@@ -20,8 +20,8 @@ module Geo
project
.
repository
.
expire_branch_cache
project
.
repository
.
expire_branch_cache
project
.
repository
.
expire_content_cache
project
.
repository
.
expire_content_cache
end
end
rescue
Gitlab
::
Shell
::
Error
=>
e
rescue
Gitlab
::
Git
::
Repository
::
NoRepository
,
Gitlab
::
Shell
::
Error
=>
e
logger
.
error
"Error fetching repository for project
#{
project
.
path_with_namespace
}
:
#{
e
}
"
logger
.
error
"
#{
self
.
class
.
name
}
:
Error fetching repository for project
#{
project
.
path_with_namespace
}
:
#{
e
}
"
end
end
private
private
...
...
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