Skip to content
Snippets Groups Projects
Commit 30e0cd2c authored by Stan Hu's avatar Stan Hu
Browse files

Ignore CRLFs in .gitmodules

Closes gitlab-org/gitlab-ce#2262

Conflicts:
	CHANGELOG
parent ddc7cc81
No related branches found
No related tags found
1 merge request!42Ignore CRLFs in .gitmodules
v 7.2.14
- Ignore CRLFs in .gitmodules (Stan Hu)
v 7.2.13
- Fix Blob#commit when pass full ref like refs/head/master
 
Loading
Loading
Loading
Loading
@@ -842,11 +842,12 @@ module Gitlab
next unless results[current]
match_data = txt.match(/(\w+)\s*=\s*(.*)/)
next unless match_data
results[current][match_data[1]] = match_data[2]
target = match_data[2].chomp
results[current][match_data[1]] = target
 
if match_data[1] == "path"
begin
results[current]["id"] = blob_content(commit, match_data[2])
results[current]["id"] = blob_content(commit, target)
rescue InvalidBlobName
results.delete(current)
end
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