diff --git a/pkg/ignore/ignore.go b/pkg/ignore/ignore.go
index <HASH>..<HASH> 100644
--- a/pkg/ignore/ignore.go
+++ b/pkg/ignore/ignore.go
@@ -70,6 +70,10 @@ func getListOfFilesToIgnore(workingDir string) (map[string]string, error) {
 	for scanner.Scan() {
 		filespec := strings.Trim(scanner.Text(), " ")
 
+		if len(filespec) == 0 {
+			continue
+		}
+
 		if strings.HasPrefix(filespec, "#") {
 			continue
 		}
diff --git a/pkg/ignore/ignore_test.go b/pkg/ignore/ignore_test.go
index <HASH>..<HASH> 100644
--- a/pkg/ignore/ignore_test.go
+++ b/pkg/ignore/ignore_test.go
@@ -157,6 +157,10 @@ func baseTest(t *testing.T, patterns []string, filesToDel []string, filesToKeep 
 	}
 }
 
+func TestBlankLine(t *testing.T) {
+	baseTest(t, []string{"foo.bar\n", "\n", "bar.baz\n"}, []string{"foo.bar", "bar.baz"}, []string{"foo.baz"})
+}
+
 func TestSingleIgnore(t *testing.T) {
 	baseTest(t, []string{"foo.bar\n"}, []string{"foo.bar"}, []string{})
 }
Skip blank lines in .s2iignore file

Updating pkg/ignore/ignore.go to skip blank lines in the .s2iignore file
Added test to pkg/ignore/ignore_test.go to test for blank line issues

Fixes #<I>