From 30e627650cc52d93b3ae08340595ae8e79296f9f Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Tue, 20 Dec 2016 01:08:11 +0100
Subject: [PATCH] scripts/update-patches: include unabbreviated object IDs in
 patch files

The default abbreviation length depends on factors like user configuration,
git version and number of repository objects. Use unabbreviates IDs to make
patch generation more reproducible.
---
 scripts/update-patches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/update-patches.sh b/scripts/update-patches.sh
index f8b92025f..676a03b2c 100755
--- a/scripts/update-patches.sh
+++ b/scripts/update-patches.sh
@@ -16,6 +16,6 @@ for module in $GLUON_MODULES; do
 	n=0
 	for commit in $(git rev-list --reverse --no-merges base..patched); do
 		let n=n+1
-		git show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' --no-renames $commit > "$GLUONDIR"/patches/$module/"$(printf '%04u' $n)-$(git show -s --pretty=format:%f $commit).patch"
+		git -c core.abbrev=40 show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' --no-renames $commit > "$GLUONDIR"/patches/$module/"$(printf '%04u' $n)-$(git show -s --pretty=format:%f $commit).patch"
 	done
 done
-- 
GitLab