Skip to content
Snippets Groups Projects
Commit 05ac2727 authored by Sebastien MASSON's avatar Sebastien MASSON
Browse files

missing part of previous commit in sette/all_functions.sh, #68

parent 3c044a84
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment