From e67331d71c453adcd7613a9532b1d5b77ddac8d4 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 5 Feb 2015 21:45:46 -0800 Subject: [PATCH] update.sh/clone.sh: add an explicit "Project: $proj" line to the log It's nice to have an unambiguous indication of which project is being operated on in the log. While clone logs are normally only found in the same directory as the project, a stray bang log temp file is not. Always include the project name as the first line in the log to make it clear which project the log applies to. --- jobd/update.sh | 1 + taskd/clone.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/jobd/update.sh b/jobd/update.sh index 18e60de..789dae9 100755 --- a/jobd/update.sh +++ b/jobd/update.sh @@ -89,6 +89,7 @@ bang_setup bang_once=1 bang_action="update" +bang echo "Project: $proj" mail="$(config_get owner || :)" url="$(config_get baseurl || :)" case "$url" in *" "*|*" "*|"") diff --git a/taskd/clone.sh b/taskd/clone.sh index 25bd24f..f1291da 100755 --- a/taskd/clone.sh +++ b/taskd/clone.sh @@ -109,6 +109,7 @@ proj="${1%.git}" cd "$cfg_reporoot/$proj.git" trap "echo '@OVER@'; touch .clone_failed; send_clone_failed" EXIT +echo "Project: $proj" [ -n "$cfg_mirror" ] || { echo "Mirroring is disabled" >&2; exit 1; } url="$(config_get baseurl || :)" case "$url" in *" "*|*" "*|"") -- 2.11.4.GIT