From bb8a367a4c20bbf14b3735bf34a3eb0177a9822d Mon Sep 17 00:00:00 2001 From: Daniel Vedder <daniel.vedder@idiv.de> Date: Tue, 10 Sep 2024 20:20:01 +0200 Subject: [PATCH] Fixed scoping error in the last bug fix... --- src/core/output.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/output.jl b/src/core/output.jl index c545317..2ff725c 100644 --- a/src/core/output.jl +++ b/src/core/output.jl @@ -88,10 +88,11 @@ settings used. This allows replicating a run in future. function saveinputfiles(model::SimulationModel) #XXX If this is a parallel run, we should save the global config to the top-level # output directory + currentcommit = "********" try # if this is loaded as a package, the directory may not be a git repo currentcommit = read(`git rev-parse HEAD`, String)[1:8] catch - currentcommit = "********" + @debug "saveinputfiles(): not a git repo." end mkpath(joinpath(@param(core.outdir), RECORDDIR)) open(joinpath(@param(core.outdir), RECORDDIR, basename(@param(core.configfile))), "w") do f -- GitLab