jjb: Use full Git commit IDs rather than short ones for Linux repository
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 26 May 2017 18:54:22 +0000 (14:54 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 26 May 2017 19:47:26 +0000 (15:47 -0400)
There was a git checkout ambiguity error because two commits had the
same 7 first characters (short ID). To avoid this in the future, use the
full commit ID.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/lttng-baremetal-tests/generate-properties-master.sh

index d344ab4080ddc331ab3f5bda4518d9083b92c1d5..dad045304762160f62abb5d9db69721ae1c20028 100644 (file)
@@ -38,7 +38,7 @@ echo "LINUX_PATH=$LINUX_PATH" >> properties.txt
 echo "LTTNG_MODULES_PATH=$LTTNG_MODULES_PATH" >> properties.txt
 echo "LTTNG_TOOLS_PATH=$LTTNG_TOOLS_PATH" >> properties.txt
 
-KERNEL_COMMIT_ID="$(git --git-dir="$LINUX_PATH"/.git/ --work-tree="$LINUX_PATH" rev-parse --short HEAD)"
+KERNEL_COMMIT_ID="$(git --git-dir="$LINUX_PATH"/.git/ --work-tree="$LINUX_PATH" rev-parse HEAD)"
 LTTNG_MODULES_COMMIT_ID="$(git --git-dir="$LTTNG_MODULES_PATH"/.git/ --work-tree="$LTTNG_MODULES_PATH" rev-parse --short HEAD)"
 LTTNG_TOOLS_COMMIT_ID="$(git --git-dir="$LTTNG_TOOLS_PATH"/.git/ --work-tree="$LTTNG_TOOLS_PATH" rev-parse --short HEAD)"
 
This page took 0.023761 seconds and 4 git commands to generate.