Просмотр исходного кода

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.
Matthias Schiffer 7 лет назад
Родитель
Сommit
30e627650c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/update-patches.sh

+ 1 - 1
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