Skip to content

Commit 16bdf5d

Browse files
authored
Merge pull request golang#214 from sakeven/master
Fix empty out data check
2 parents 9659997 + 4c1faf7 commit 16bdf5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcs_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (s *gitSource) listVersions(ctx context.Context) (vlist []PairedVersion, er
170170
}
171171

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

0 commit comments

Comments
 (0)