Skip to content

Commit ec7f74b

Browse files
committed
fix: Fix gitignore issue (feast-dev#4674)
fix: gitignore issue Signed-off-by: Matt Green <emgeee@users.noreply.github.com>
1 parent 80b4b37 commit ec7f74b

File tree

11 files changed

+4
-0
lines changed

11 files changed

+4
-0
lines changed

sdk/python/feast/repo_operations.py

+4
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,10 @@ def init_repo(repo_name: str, template: str):
468468
raise IOError(f"Could not find template {template}")
469469
copytree(template_path, str(repo_path), dirs_exist_ok=True)
470470

471+
# Rename gitignore files back to .gitignore
472+
for gitignore_path in repo_path.rglob("gitignore"):
473+
gitignore_path.rename(gitignore_path.with_name(".gitignore"))
474+
471475
# Seed the repository
472476
bootstrap_path = repo_path / "bootstrap.py"
473477
if os.path.exists(bootstrap_path):

0 commit comments

Comments
 (0)