Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
fix empty out data check
Browse files Browse the repository at this point in the history
  • Loading branch information
sakeven committed Apr 13, 2017
1 parent cbe8c18 commit cf06e68
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 cf06e68

Please sign in to comment.