Skip to content

Commit fc60ef5

Browse files
author
OpenShift Bot
authored
Merge pull request #10515 from oatmealraisin/rymurphy/quickfix
Merged by openshift-bot
2 parents 1fdcf8a + 607e31b commit fc60ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/build/builder/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func extractGitSource(gitClient GitClient, gitSource *api.GitBuildSource, revisi
240240
}
241241

242242
if glog.Is(0) {
243-
if information, gitErr := gitClient.GetInfo(dir); gitErr == nil {
243+
if information, gitErr := gitClient.GetInfo(dir); len(gitErr) == 0 {
244244
glog.Infof("\tCommit:\t%s (%s)\n", information.CommitID, information.Message)
245245
glog.Infof("\tAuthor:\t%s <%s>\n", information.AuthorName, information.AuthorEmail)
246246
glog.Infof("\tDate:\t%s\n", information.Date)

0 commit comments

Comments
 (0)