diff --git a/sdk/python/feast/repo_operations.py b/sdk/python/feast/repo_operations.py index 6629768375a..4db0bbc6fdb 100644 --- a/sdk/python/feast/repo_operations.py +++ b/sdk/python/feast/repo_operations.py @@ -468,6 +468,10 @@ def init_repo(repo_name: str, template: str): raise IOError(f"Could not find template {template}") copytree(template_path, str(repo_path), dirs_exist_ok=True) + # Rename gitignore files back to .gitignore + for gitignore_path in repo_path.rglob("gitignore"): + gitignore_path.rename(gitignore_path.with_name(".gitignore")) + # Seed the repository bootstrap_path = repo_path / "bootstrap.py" if os.path.exists(bootstrap_path): diff --git a/sdk/python/feast/templates/athena/.gitignore b/sdk/python/feast/templates/athena/gitignore similarity index 100% rename from sdk/python/feast/templates/athena/.gitignore rename to sdk/python/feast/templates/athena/gitignore diff --git a/sdk/python/feast/templates/aws/.gitignore b/sdk/python/feast/templates/aws/gitignore similarity index 100% rename from sdk/python/feast/templates/aws/.gitignore rename to sdk/python/feast/templates/aws/gitignore diff --git a/sdk/python/feast/templates/cassandra/.gitignore b/sdk/python/feast/templates/cassandra/gitignore similarity index 100% rename from sdk/python/feast/templates/cassandra/.gitignore rename to sdk/python/feast/templates/cassandra/gitignore diff --git a/sdk/python/feast/templates/gcp/.gitignore b/sdk/python/feast/templates/gcp/gitignore similarity index 100% rename from sdk/python/feast/templates/gcp/.gitignore rename to sdk/python/feast/templates/gcp/gitignore diff --git a/sdk/python/feast/templates/hazelcast/.gitignore b/sdk/python/feast/templates/hazelcast/gitignore similarity index 100% rename from sdk/python/feast/templates/hazelcast/.gitignore rename to sdk/python/feast/templates/hazelcast/gitignore diff --git a/sdk/python/feast/templates/hbase/.gitignore b/sdk/python/feast/templates/hbase/gitignore similarity index 100% rename from sdk/python/feast/templates/hbase/.gitignore rename to sdk/python/feast/templates/hbase/gitignore diff --git a/sdk/python/feast/templates/minimal/.gitignore b/sdk/python/feast/templates/minimal/gitignore similarity index 100% rename from sdk/python/feast/templates/minimal/.gitignore rename to sdk/python/feast/templates/minimal/gitignore diff --git a/sdk/python/feast/templates/postgres/.gitignore b/sdk/python/feast/templates/postgres/gitignore similarity index 100% rename from sdk/python/feast/templates/postgres/.gitignore rename to sdk/python/feast/templates/postgres/gitignore diff --git a/sdk/python/feast/templates/snowflake/.gitignore b/sdk/python/feast/templates/snowflake/gitignore similarity index 100% rename from sdk/python/feast/templates/snowflake/.gitignore rename to sdk/python/feast/templates/snowflake/gitignore diff --git a/sdk/python/feast/templates/spark/.gitignore b/sdk/python/feast/templates/spark/gitignore similarity index 100% rename from sdk/python/feast/templates/spark/.gitignore rename to sdk/python/feast/templates/spark/gitignore