• John Cai's avatar
    Do not ensure HEAD is default_branch on snippets · 81f2238e
    John Cai authored
    Since create_repository_if_exists takes a default_branch argument, use
    that in the initial call to create the repository rather than changing
    it after the fact. This avoids potential racy calls to WriteRef, as well
    as saves a roundtrip to Gitaly.
    
    Changelog: changed
    81f2238e
git_access_snippet_spec.rb 13.5 KB