From 09bf9558ee8987d75e9d453c3312f9e05b9996fa Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Sat, 30 Dec 2023 10:30:26 +0100 Subject: [PATCH] changed experiment name in syncscript --- syncscript.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncscript.sh b/syncscript.sh index 17f7f0b..f829e3d 100755 --- a/syncscript.sh +++ b/syncscript.sh @@ -2,9 +2,9 @@ . ../env/bin/activate -commit_message="$(git log -1 --oneline | sed 's/\s/_/g')" +commit_message="$(git log -1 --pretty=format:"%s_%h" | sed 's/\s/_/g')" git diff --quiet || commit_message="${commit_message}_dirty" -datetime="$(date +%Y%m%d_%H%M%S)" +datetime="$(date +%Y%-m-%dT%H:%M:%S)" exp_name="${commit_message}-${datetime}" experiment_log_dir="${2}/${exp_name}"