Skip to content
Snippets Groups Projects
Commit 6b3aee6e authored by xo30xoqa's avatar xo30xoqa
Browse files

Yet another error removed :-/

parent bb8a367a
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,12 @@ function saveinputfiles(model::SimulationModel)
# Record the current git commit and versions of dependencies for reproducibility
println(f, "# with Persefone $(pkgversion(Persefone)), git commit $(currentcommit),")
println(f, "# running on Julia $(VERSION).\n#\n")
if !isempty(strip(read(`git status -s`, String)))
println(f, "# WARNING: Your repository contains uncommitted changes. This may")
println(f, "# compromise the reproducibility of this simulation run.\n")
try # if this is loaded as a package, the directory may not be a git repo
if !isempty(strip(read(`git status -s`, String)))
println(f, "# WARNING: Your repository contains uncommitted changes. This may")
println(f, "# compromise the reproducibility of this simulation run.\n")
end
catch
end
TOML.print(f, prepareTOML(deepcopy(model.settings)))
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment