summaryrefslogtreecommitdiff
path: root/lib/github/representation/branch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/github/representation/branch.rb')
-rw-r--r--lib/github/representation/branch.rb2
1 files changed, 1 insertions, 1 deletions
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