Skip to content

Commit faa54a6

Browse files
authored
Merge pull request #229 from wlyu2/fix-fetch-tags-without-branches
fix release tags not recognized when not on a branch
2 parents 568ca8e + a673028 commit faa54a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ func createGitRepository(debsrc, gopkg, orig string, u *upstream,
487487
if err := runGitCommandIn(dir, "remote", "add", u.remote, u.rr.Repo); err != nil {
488488
return dir, fmt.Errorf("git remote add %s %s: %w", u.remote, u.rr.Repo, err)
489489
}
490-
log.Printf("Running \"git fetch %s\"\n", u.remote)
491-
if err := runGitCommandIn(dir, "fetch", u.remote); err != nil {
490+
log.Printf("Running \"git fetch --tags %s\"\n", u.remote)
491+
if err := runGitCommandIn(dir, "fetch", "--tags", u.remote); err != nil {
492492
return dir, fmt.Errorf("git fetch %s: %w", u.remote, err)
493493
}
494494
}

0 commit comments

Comments
 (0)