From c6d4692b1b6eb105c9abce0411d2ef4b8708a6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B6xtermann?= Date: Thu, 12 Dec 2024 21:18:56 +0100 Subject: [PATCH] feat(nixery): default to HEAD to support other default branches Change-Id: Id8407026fb103701129dc1a2f009ab2388f55122 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13326 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- config/pkgsource.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/pkgsource.go b/config/pkgsource.go index c7508a4..eb52cfc 100644 --- a/config/pkgsource.go +++ b/config/pkgsource.go @@ -50,10 +50,9 @@ func (g *GitSource) Render(tag string) (string, string) { } // The 'git' source requires a tag to be present. If the user - // has not specified one, it is assumed that the default - // 'master' branch should be used. + // has not specified one, it is assumed that 'HEAD' should be used. if tag == "latest" || tag == "" { - tag = "master" + tag = "HEAD" } if commitRegex.MatchString(tag) {