Sette fails with git version < 2.2
In multiple places, the SETTE test bash scripts use the following command to check the branch name
git branch --show-current >& /dev/null
if [[ $? == 0 ]] ; then
[...]
revision=`git rev-list --abbrev-commit origin | head -1l`
else
branchname="Unknown"
fi
The git command is failing with the git version < 2.2
error: unknown option `show-current'
And the code never assigns the revision
variable, and branch name is set to "Unknown".
It looks to me that somewhere else (I have not been able to understand where exactely) the correct value is assigned because I have the results in a folder named
[..]/NEMO_VALIDATION/MAIN/mn4/22311_25d5cad7
But the sette.sh script is not able to find it (I think is searching in the wrong folder), so the generated report is empty
/gpfs/scratch/bsc32/bsc32402/nemo/NEMO_VALIDATION/MAIN exists. Do you wish to use it as a reference? y
Current code is : Unknown @ 22311_ ( with local changes )
SETTE validation report generated for :
Unknown @ 22311_ (with local changes)
on mn4-debug arch file
!!---------------1st pass------------------!!
!----restart----!
GYRE_PISCES directory MISSING : 22311_+
ORCA2_ICE_PISCES directory MISSING : 22311_+
ORCA2_OFF_PISCES directory MISSING : 22311_+
AMM12 directory MISSING : 22311_+
ORCA2_SAS_ICE directory MISSING : 22311_+
AGRIF_DEMO directory MISSING : 22311_+
WED025 directory MISSING : 22311_+
ISOMIP+ directory MISSING : 22311_+
OVERFLOW directory MISSING : 22311_+
LOCK_EXCHANGE directory MISSING : 22311_+
VORTEX directory MISSING : 22311_+
ICE_AGRIF directory MISSING : 22311_+
SWG directory MISSING : 22311_+
!----repro----!
GYRE_PISCES directory MISSING : 22311_+
ORCA2_ICE_PISCES directory MISSING : 22311_+
ORCA2_OFF_PISCES directory MISSING : 22311_+
AMM12 directory MISSING : 22311_+
ORCA2_SAS_ICE directory MISSING : 22311_+
ORCA2_ICE_OBS directory MISSING : 22311_+
AGRIF_DEMO directory MISSING : 22311_+
WED025 directory MISSING : 22311_+
ISOMIP+ directory MISSING : 22311_+
VORTEX directory MISSING : 22311_+
ICE_AGRIF directory MISSING : 22311_+
SWG directory MISSING : 22311_+
Changing the git command (in the sette_rpt.sh script) to:
git rev-parse --abbrev-ref HEAD >& /dev/null
the report is generated correctly.