Skip to content

Commit

Permalink
fetch updates on a bare repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Aug 29, 2024
1 parent fe1afa3 commit b0e321c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ func updateRepository(reponame string, auth transport.AuthMethod, dry bool, l ty
if err != nil {
return err
}
} else {
sub.Info().
Msgf("pulling %s", types.Green(reponame))
err = r.Fetch(&git.FetchOptions{Auth: auth, RemoteName: "origin", RefSpecs: []config.RefSpec{"+refs/*:refs/*"}})
}
}
}
Expand Down

0 comments on commit b0e321c

Please sign in to comment.