diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/importer/ingest.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/importer/ingest.go b/internal/importer/ingest.go index 08d0366..7706807 100644 --- a/internal/importer/ingest.go +++ b/internal/importer/ingest.go @@ -57,6 +57,9 @@ func ValueTypeToString(valueType jstream.ValueType) string { } func makeGitHubFileURL(userRepo string, ref string, subPath string) string { + if ref == "" { + ref = "master" + } url, _ := url.JoinPath("https://github.com/", userRepo, "blob", ref, subPath) return url |