Skip to content

Commit

Permalink
Merge pull request sdboyer/gps#214 from sakeven/master
Browse files Browse the repository at this point in the history
Fix empty out data check
  • Loading branch information
sdboyer authored Apr 13, 2017
2 parents cbe8c18 + cf06e68 commit b440b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcs_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (s *gitSource) listVersions(ctx context.Context) (vlist []PairedVersion, er
}

all := bytes.Split(bytes.TrimSpace(out), []byte("\n"))
if len(all) == 0 {
if len(all) == 1 && len(all[0]) == 0 {
return nil, fmt.Errorf("no data returned from ls-remote")
}

Expand Down

0 comments on commit b440b3c

Please sign in to comment.