diff --git a/docs/spec.schema.json b/docs/spec.schema.json index 6604bb613..26ac5b994 100644 --- a/docs/spec.schema.json +++ b/docs/spec.schema.json @@ -750,8 +750,7 @@ "type": "object", "required": [ "url", - "commit", - "keepGitDir" + "commit" ] }, "SourceHTTP": { diff --git a/spec.go b/spec.go index 7d8e9f4cd..18111a5a8 100644 --- a/spec.go +++ b/spec.go @@ -144,7 +144,7 @@ type SourceDockerImage struct { type SourceGit struct { URL string `yaml:"url" json:"url"` Commit string `yaml:"commit" json:"commit"` - KeepGitDir bool `yaml:"keepGitDir" json:"keepGitDir"` + KeepGitDir bool `yaml:"keepGitDir,omitempty" json:"keepGitDir,omitempty"` Auth GitAuth `yaml:"auth,omitempty" json:"auth,omitempty"` }