Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] common/environment/setup: hide commit signature
@ 2021-09-28 10:25 dschoemantruter
  2021-09-28 15:16 ` [PR PATCH] [Closed]: " sgn
  0 siblings, 1 reply; 2+ messages in thread
From: dschoemantruter @ 2021-09-28 10:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

There is a new pull request by dschoemantruter against master on the void-packages repository

https://github.com/dschoemantruter/void-packages hide-commit-signature
https://github.com/void-linux/void-packages/pull/33165

common/environment/setup: hide commit signature
When using signed commits the signature needs to be removed/hidden to extract the date correctly.

A patch file from https://github.com/void-linux/void-packages/pull/33165.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-hide-commit-signature-33165.patch --]
[-- Type: text/x-diff, Size: 981 bytes --]

From 8fcb6d7db5eede62fa9a8dcbbd67c4cadd30c26f Mon Sep 17 00:00:00 2001
From: dschoemantruter <91532608+dschoemantruter@users.noreply.github.com>
Date: Tue, 28 Sep 2021 12:09:51 +0200
Subject: [PATCH] hide commit signature

---
 common/environment/setup/git.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/environment/setup/git.sh b/common/environment/setup/git.sh
index 4b352fe53870..7b2db6befe2f 100644
--- a/common/environment/setup/git.sh
+++ b/common/environment/setup/git.sh
@@ -17,7 +17,7 @@ elif [ -z "${SOURCE_DATE_EPOCH}" ]; then
 	if [ -n "$basepkg" -a -z "$($XBPS_GIT_CMD -C ${XBPS_SRCPKGDIR}/${basepkg} ls-files template)" ]; then
 		export SOURCE_DATE_EPOCH="$(stat -c %Y ${XBPS_SRCPKGDIR}/${basepkg}/template)"
 	else
-		export SOURCE_DATE_EPOCH="$($XBPS_GIT_CMD -C ${XBPS_DISTDIR} log --pretty='%ct' -n1 HEAD)"
+		export SOURCE_DATE_EPOCH="$($XBPS_GIT_CMD -C ${XBPS_DISTDIR} log --no-show-signature --pretty='%ct' -n1 HEAD)"
 	fi
 fi
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: common/environment/setup: hide commit signature
  2021-09-28 10:25 [PR PATCH] common/environment/setup: hide commit signature dschoemantruter
@ 2021-09-28 15:16 ` sgn
  0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2021-09-28 15:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

There's a closed pull request on the void-packages repository

common/environment/setup: hide commit signature
https://github.com/void-linux/void-packages/pull/33165

Description:
When using signed commits the signature needs to be removed/hidden to extract the date correctly.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-28 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 10:25 [PR PATCH] common/environment/setup: hide commit signature dschoemantruter
2021-09-28 15:16 ` [PR PATCH] [Closed]: " sgn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).