summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-08 18:07:09 +0200
committerJames Lopez <james@jameslopez.es>2017-06-08 18:07:09 +0200
commita9b234c882418f43d6475f3d68d1fb079c368632 (patch)
tree2c397f13ab2e73dbef285ebae0cd3319cc460391
parentd0ad2b97b14f1f9873b4e18d2269773c34fbd7e5 (diff)
downloadgitlab-ce-fix/github-import-performance.tar.gz
Fix branch existence check so it only calls git contains oncefix/github-import-performance
-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 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?