From 41ef94e777d9c9d10a8b64b1498f57a8e5847e23 Mon Sep 17 00:00:00 2001 From: Ahmad Sherif Date: Mon, 28 Aug 2017 09:31:41 +0200 Subject: Migrate creating/deleting a branch to Gitaly --- lib/github/representation/branch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/github') diff --git a/lib/github/representation/branch.rb b/lib/github/representation/branch.rb index c6fa928d565..823e8e9a9c4 100644 --- a/lib/github/representation/branch.rb +++ b/lib/github/representation/branch.rb @@ -41,7 +41,7 @@ module Github def remove!(name) repository.delete_branch(name) - rescue Rugged::ReferenceError => e + rescue Gitlab::Git::Repository::DeleteBranchError => e Rails.logger.error("#{self.class.name}: Could not remove branch #{name}: #{e}") end -- cgit v1.2.1