Browse Source

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 6 years ago
parent
commit
8d9c213e61
1 changed files with 1 additions and 1 deletions
  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
 		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"
 	gitRepo.DeleteTag(gitTag) // avoid "ErrTagExists"
 	_, err = gitRepo.CreateTag(gitTag, goGitPlumbing.NewHash(commit), nil)
 	_, err = gitRepo.CreateTag(gitTag, goGitPlumbing.NewHash(commit), nil)
 	if err != nil {
 	if err != nil {