From 5741a2193871059099762a391c6b6a4d4fd5d243 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 3 Sep 2022 13:41:51 +0200 Subject: [PATCH] use short commit --- sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync.sh b/sync.sh index 6da14d4..9865e96 100644 --- a/sync.sh +++ b/sync.sh @@ -4,7 +4,7 @@ TOPDIR=$(pwd) changelog=${TOPDIR}/changelog-${device}-${version}.md declare -A before -tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"')) +tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"')) for i in "${tmp[@]}"; do IFS=: read -r folder commit <<<"${i}" before[${folder}]=${commit} @@ -14,7 +14,7 @@ repo sync -q -c -j 6 --fail-fast --force-sync --no-tags echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}" -tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"')) +tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"')) for i in "${tmp[@]}"; do IFS=: read -r folder commit <<<"${i}" if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then