Explorar o código

Adjust temporary Git tags to also include namespace (and to normalize just in case something that can't be in a Git tag slips through)

Tianon Gravi %!s(int64=6) %!d(string=hai) anos
pai
achega
8d9c213e61
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bashbrew/go/src/bashbrew/git.go

+ 1 - 1
bashbrew/go/src/bashbrew/git.go

@@ -242,7 +242,7 @@ func (r Repo) fetchGitRepo(arch string, entry *manifest.Manifest2822Entry) (stri
 		return "", err
 	}
 
-	gitTag := arch+"/"+r.RepoName+"/"+entry.Tags[0]
+	gitTag := gitNormalizeForTagUsage(path.Join(arch, namespace, r.RepoName, entry.Tags[0]))
 	gitRepo.DeleteTag(gitTag) // avoid "ErrTagExists"
 	_, err = gitRepo.CreateTag(gitTag, goGitPlumbing.NewHash(commit), nil)
 	if err != nil {