Skip to content

Commit c6d4692

Browse files
hxtmdevclbot
authored andcommitted
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 <[email protected]> Autosubmit: tazjin <[email protected]> Tested-by: BuildkiteCI
1 parent a857eda commit c6d4692

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

config/pkgsource.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ func (g *GitSource) Render(tag string) (string, string) {
5050
}
5151

5252
// The 'git' source requires a tag to be present. If the user
53-
// has not specified one, it is assumed that the default
54-
// 'master' branch should be used.
53+
// has not specified one, it is assumed that 'HEAD' should be used.
5554
if tag == "latest" || tag == "" {
56-
tag = "master"
55+
tag = "HEAD"
5756
}
5857

5958
if commitRegex.MatchString(tag) {

0 commit comments

Comments
 (0)