Commit 0f7ab526 authored by Nick Thomas's avatar Nick Thomas

Geo: fetch_remote can now raise Gitlab::Git::BaseError

parent 4ac37a0f
......@@ -8,7 +8,7 @@ module Geo
fetch_repository
update_root_ref
mark_sync_as_successful
rescue Gitlab::Shell::Error => e
rescue Gitlab::Shell::Error, Gitlab::Git::BaseError => e
# In some cases repository does not exist, the only way to know about this is to parse the error text.
# If it does not exist we should consider it as successfully downloaded.
if e.message.include? Gitlab::GitAccess::ERROR_MESSAGES[:no_repo]
......
......@@ -8,7 +8,7 @@ module Geo
fetch_repository
mark_sync_as_successful
rescue Gitlab::Shell::Error, ProjectWiki::CouldNotCreateWikiError => e
rescue Gitlab::Shell::Error, Gitlab::Git::BaseError, ProjectWiki::CouldNotCreateWikiError => e
# In some cases repository does not exist, the only way to know about this is to parse the error text.
# If it does not exist we should consider it as successfully downloaded.
if e.message.include? Gitlab::GitAccess::ERROR_MESSAGES[:no_repo]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment