Default to current directory for repository
This commit is contained in:
parent
dd895a1613
commit
0400b7c8a0
@ -17,10 +17,10 @@ module Configuration = struct
|
||||
try
|
||||
Ok {
|
||||
repository =
|
||||
(try Lpath.repo_of_string (str "repository" |> mandatory)
|
||||
(try Lpath.repo_of_string (str "repository" |> with_default ".")
|
||||
with
|
||||
| Invalid_argument s -> failwith ("Invalid repository: " ^ s)
|
||||
| Failure s -> failwith s);
|
||||
| Failure s -> failwith ("Missing repository value: " ^ s));
|
||||
title = str "title" |> with_default "";
|
||||
owner = str "owner" |> with_default "";
|
||||
email = str "email" |> with_default "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user