Skip to content

Commit 9125977

Browse files
authored
gitindex: unmarshal tenantID from git config (#958)
1 parent bc8f4ff commit 9125977

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/gitindex/index.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ func setTemplatesFromConfig(desc *zoekt.Repository, repoDir string) error {
248248
id, _ := strconv.ParseUint(sec.Options.Get("repoid"), 10, 32)
249249
desc.ID = uint32(id)
250250

251+
desc.TenantID, _ = strconv.Atoi(sec.Options.Get("tenantID"))
252+
251253
if desc.RawConfig == nil {
252254
desc.RawConfig = map[string]string{}
253255
}

0 commit comments

Comments
 (0)