Skip to content
Snippets Groups Projects
Commit 023d6749 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment