Skip to content
Snippets Groups Projects
Commit a39fd0de authored by Guillaume Samson's avatar Guillaume Samson :snowman2:
Browse files

Resolve "SETTE scripts do not give the expected current revision/sha with Nemo 4.2"

parent 15cf3dbb
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ 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`
REVISION_NB=`git -C ${MAIN_DIR} rev-parse --short HEAD 2> /dev/null`
else
REVISION_NB=${DETACHED_CMIT}
fi
......
......@@ -591,7 +591,7 @@ if [[ $? == 0 ]] ; then
branchname="Unknown"
fi
else
revision=`git rev-list --abbrev-commit origin | head -1l`
revision=`git rev-parse --short HEAD 2> /dev/null`
fi
else
branchname="Unknown"
......
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