Skip to content

Commit

Permalink
fix: error when JULIA_ENV ends with .toml (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdayanand authored and KristofferC committed Jan 6, 2018
1 parent 317e312 commit d72d372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ function find_project(env::String)
if isfile(env)
return path, find_git_repo(path)
else
return init_if_interactive(path), find_git_repo(path)
return init_if_interactive(dirname(path)), find_git_repo(path)
end
end
for name in project_names
Expand All @@ -744,7 +744,7 @@ function init_if_interactive(path::String)
choice = TerminalMenus.request("Could not find local environment in $(path), do you want to create it?",
TerminalMenus.RadioMenu(["yes", "no"]))
if choice == 1
Pkg3.Operations.init(pwd())
Pkg3.Operations.init(path)
path, gitrepo = find_project(path)
return path
end
Expand Down

0 comments on commit d72d372

Please sign in to comment.