This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH builds.sr.ht] worker: show checked out commit

Message ID
DKIM signature
Download raw message
Patch: +2 -1
After checking out a repo, show the current commit. This is useful when
specifying a source without a ref (ie. checking out HEAD), to be able to
understand the exact state in which a build happened.
 worker/tasks.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/worker/tasks.go b/worker/tasks.go
index 7adb738cc3ae..80457222ef23 100644
--- a/worker/tasks.go
+++ b/worker/tasks.go
@@ -337,7 +337,8 @@ func (ctx *JobContext) CloneGitRepo(srcurl, repo_name, ref string) error {
	git = ctx.SSH("GIT_SSH_COMMAND='ssh -o " +
		"UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'",
		"sh", "-euxc",
		fmt.Sprintf("'cd %s && git submodule update --init'", repo_name))
		fmt.Sprintf("'cd %s && git show --oneline -s && "
		+ "git submodule update --init'", repo_name))
	git.Stdout = ctx.LogFile
	git.Stderr = ctx.LogFile
	if err := git.Run(); err != nil {
Message ID
<_dryYwcNcOMzea8kiMM7oOErV3dqlJFDk4G1HjgIqCjwTgYz5CW02Z-5hg9-zEj8ANdU4xv2urjrm_8tw-hR0kCphIHWDT1Pq-XDi_JAiA8=@emersion.fr> (view parent)
DKIM signature
Download raw message
Can you do this in a separate step, rather than merging it with the
submodule checkout?
Review patch Export thread (mbox)