From 05ac272774796a2eb0389edf01ced2076fa05e32 Mon Sep 17 00:00:00 2001 From: Sebastien MASSON <massons@irene151.c-irene.tgcc.ccc.cea.fr> Date: Fri, 26 Aug 2022 12:35:14 +0200 Subject: [PATCH] missing part of previous commit in sette/all_functions.sh, #68 --- sette/all_functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sette/all_functions.sh b/sette/all_functions.sh index 326b38d1f..d9f87067d 100755 --- a/sette/all_functions.sh +++ b/sette/all_functions.sh @@ -172,7 +172,8 @@ clean_config() { # define validation dir set_valid_dir () { if [ ${DETACHED_HEAD} == "no" ] ; then - REVISION_NB=`git -C ${MAIN_DIR} rev-list --abbrev-commit origin | head -1l` + branchname=$( git branch --show-current ) + REVISION_NB=$( git -C ${MAIN_DIR} rev-list --abbrev-commit origin/$branchname | head -1l ) else REVISION_NB=${DETACHED_CMIT} fi -- GitLab