From a9b234c882418f43d6475f3d68d1fb079c368632 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Thu, 8 Jun 2017 18:07:09 +0200 Subject: Fix branch existence check so it only calls git contains once --- lib/github/representation/branch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/github/representation/branch.rb') diff --git a/lib/github/representation/branch.rb b/lib/github/representation/branch.rb index da04a9beedb..7acc511b908 100644 --- a/lib/github/representation/branch.rb +++ b/lib/github/representation/branch.rb @@ -30,7 +30,7 @@ module Github end def confirm_branch_existence - @exists = commit_exists? + @exists = true end def valid? -- cgit v1.2.1