Commit 023d6749 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Just detect exit status rather than check ref

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13416#note_37193731

So we just try a cheaper way to detect it if it works or not
parent 412db187
......@@ -1024,7 +1024,7 @@ class Repository
message, status = run_git(args)
# Make sure ref was created, and raise Rugged::ReferenceError when not
raise Rugged::ReferenceError, message unless ref_exists?(target_ref)
raise Rugged::ReferenceError, message if status != 0
end
def create_ref(ref, ref_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment