• Yorick Peterse's avatar
    Only set autocrlf when creating/updating files · c475b171
    Yorick Peterse authored
    Setting the "autocrlf" Git option is an overkill since it's rarely
    actually needed. More importantly, it has quite the impact on
    performance (see gitlab-org/gitlab-ce#13457 for more information).
    
    By setting "autocrlf" when creating or updating files we guarantee the
    option is always set properly when we actually need it _without_
    introducing overhead for requests that have nothing to do with this
    option.
    
    Fixes gitlab-org/gitlab-ce#13457
    c475b171
repository_spec.rb 11.5 KB