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