Skip to content

Commit 28b7836

Browse files
author
gentele
committed
improvements for devspace init
1 parent 9cc5c37 commit 28b7836

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cmd/init.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ func (cmd *InitCmd) addDefaultSyncConfig() {
286286
dockerignoreRules := strings.Split(string(dockerignore), "\n")
287287

288288
for _, ignoreRule := range dockerignoreRules {
289-
uploadExcludePaths = append(uploadExcludePaths, ignoreRule)
289+
if len(ignoreRule) > 0 {
290+
uploadExcludePaths = append(uploadExcludePaths, ignoreRule)
291+
}
290292
}
291293
}
292294

0 commit comments

Comments
 (0)