diff --git a/src/core/output.jl b/src/core/output.jl index c545317da2a00737ca05e8ddc521014ef3ee0239..2ff725c11f3137a16c94c14a9dba730f82237066 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