lib/gitlab_git/repository.rb in gitlab_git-7.2.13 vs lib/gitlab_git/repository.rb in gitlab_git-7.2.14

- old
+ new

@@ -840,14 +840,15 @@ results[current] = {} else 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 end end