Skip to content

Commit

Permalink
Fix issue where argocd could not sync to a tag (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesuen authored Aug 31, 2018
1 parent 4da779c commit 40f2220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (m *nativeGitClient) setCredentials() error {
func (m *nativeGitClient) Fetch() error {
var err error
log.Debugf("Fetching repo %s at %s", m.repoURL, m.root)
if _, err = m.runCmd("git", "fetch", "origin"); err != nil {
if _, err = m.runCmd("git", "fetch", "origin", "--tags"); err != nil {
return err
}
// git fetch does not update the HEAD reference. The following command will update the local
Expand Down

0 comments on commit 40f2220

Please sign in to comment.