diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-07 01:10:52 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-07 15:59:07 -0300 |
commit | ec4b03a4c66a39bed2457528509ceb9806a16084 (patch) | |
tree | 29fd9e5801c0a2be7ff594b18e09a68e4489681a /lib/gitlab | |
parent | 0cc4afc96607b7f3b751ff7ca42c24a0b8499dbe (diff) | |
download | gitlab-ce-ec4b03a4c66a39bed2457528509ceb9806a16084.tar.gz |
Fix 'Object not found - no match for id (sha)' when importing GitHub PRs
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/github_import/branch_formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/branch_formatter.rb b/lib/gitlab/github_import/branch_formatter.rb index 0a8d05b5fe1..5d29e698b27 100644 --- a/lib/gitlab/github_import/branch_formatter.rb +++ b/lib/gitlab/github_import/branch_formatter.rb @@ -18,7 +18,7 @@ module Gitlab end def commit_exists? - project.repository.commit(sha).present? + project.repository.branch_names_contains(sha).include?(ref) end def short_id |