Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2017-08-28 10:31:41 +0300
committerAhmad Sherif <me@ahmadsherif.com>2017-09-06 18:25:17 +0300
commit41ef94e777d9c9d10a8b64b1498f57a8e5847e23 (patch)
treebcb96395e9f44e0ff1ed2d9ea33f7eb46b3f4e44 /lib/gitlab/github_import
parent685066cd0e4bb9c2279c1ed43ae445d07c963743 (diff)
Migrate creating/deleting a branch to Gitaly
Diffstat (limited to 'lib/gitlab/github_import')
-rw-r--r--lib/gitlab/github_import/importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer.rb b/lib/gitlab/github_import/importer.rb
index 373062b354b..b8c07460ebb 100644
--- a/lib/gitlab/github_import/importer.rb
+++ b/lib/gitlab/github_import/importer.rb
@@ -166,7 +166,7 @@ module Gitlab
def remove_branch(name)
project.repository.delete_branch(name)
- rescue Rugged::ReferenceError
+ rescue Gitlab::Git::Repository::DeleteBranchFailed
errors << { type: :remove_branch, name: name }
end