Skip to content

Commit d812e0e

Browse files
authored
Fix ddev create (README file gets overwritten) (#18879)
* fix ddev create * changelog
1 parent 849a253 commit d812e0e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ddev create bug where README file gets overwritten

datadog_checks_dev/datadog_checks/dev/tooling/create.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ def create_template_files(template_name, new_root, config, repo_choice, read=Fal
193193
for template_file in template_files:
194194
if template_file.endswith('1.added') and repo_choice != 'core':
195195
continue
196+
if template_root == root and template_file == "README.md":
197+
continue
196198
if not template_file.endswith(('.pyc', '.pyo')):
197199
if template_file == 'README.md' and config.get('support_type') in ('partner', 'contrib'):
198200
# Custom README for the marketplace/partner support_type integrations

0 commit comments

Comments
 (0)