diff options
-rw-r--r-- | src/rebar_prv_cover.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index 791e4e9..765e2ac 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -250,6 +250,9 @@ write_index_section(F, [{Section, DataFile, Mods}|Rest]) -> ok = file:write(F, "</table>\n"), write_index_section(F, Rest). +%% fix for r15b which doesn't put the correct path in the `source` section +%% of `module_info(compile)` +strip_coverdir([]) -> ""; strip_coverdir(File) -> filename:join(lists:reverse(lists:sublist(lists:reverse(filename:split(File)), 2))). |