diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-06-27 17:47:56 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-06-27 17:47:56 -0500 |
commit | 5012e06e68a168d102545ddd3fb0428715c08753 (patch) | |
tree | 1d84b4e90a580be07e632fa4a468ec82d4055adb /src/rebar_dir.erl | |
parent | e28ebaa95725698bfed110804e0448c073c98531 (diff) | |
parent | 99858f3b6902c4feb95620ce0125c52635bf8f00 (diff) |
Merge pull request #489 from kovyl2404/windows-ct-fix
Make test on windows green.
Diffstat (limited to 'src/rebar_dir.erl')
-rw-r--r-- | src/rebar_dir.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_dir.erl b/src/rebar_dir.erl index e226633..7af94ea 100644 --- a/src/rebar_dir.erl +++ b/src/rebar_dir.erl @@ -100,7 +100,11 @@ local_cache_dir(Dir) -> get_cwd() -> {ok, Dir} = file:get_cwd(), - Dir. + %% On windows cwd may return capital letter for drive, + %% for example C:/foobar. But as said in http://www.erlang.org/doc/man/filename.html#join-1 + %% filename:join/1,2 anyway will convert drive-letter to lowercase, so we have to "internalize" + %% cwd as soon as it possible. + filename:join([Dir]). template_globals(State) -> filename:join([global_config_dir(State), "templates", "globals"]). |