Skip to content

Commit 5f97a24

Browse files
committed
pkg: restore vcs.TreeLink and html.SetGlobSearchPath
This partially reverts commit 43f51a0 to restore vcs.TreeLink and html.SetGlobSearchPath. This broke internal code.
1 parent f61267d commit 5f97a24

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

pkg/html/html.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ var globSearchPath = func() string {
2929
return "templates/"
3030
}()
3131

32+
// SetGlobSearchPath overrides the default path where syzkaller looks for templates.
33+
// Used externally - do not remove.
34+
func SetGlobSearchPath(path string) {
35+
globSearchPath = path
36+
}
37+
3238
func CreateGlob(glob string) *template.Template {
3339
if strings.Contains(glob, string(filepath.Separator)) {
3440
panic("glob can't be a path, the files mask is expected")

pkg/vcs/vcs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ func CommitLink(url, hash string) string {
369369
return link(url, hash, "", 0, 0)
370370
}
371371

372+
// Used externally - do not remove.
373+
func TreeLink(url, hash string) string {
374+
return link(url, hash, "", 0, 1)
375+
}
376+
372377
func LogLink(url, hash string) string {
373378
return link(url, hash, "", 0, 2)
374379
}

0 commit comments

Comments
 (0)