forked from mirror/Archipelago
APQuest: Improve the auto-generated .gitignore for data/sounds (#5670)
I didn't quite think this through: In this specific case, you want the gitignore to also ignore itself, since it itself is an auto-generated file.
This commit is contained in:
@@ -16,10 +16,6 @@ def make_data_directory(dir_name: str) -> Path:
|
|||||||
gitignore = specific_data_directory / ".gitignore"
|
gitignore = specific_data_directory / ".gitignore"
|
||||||
|
|
||||||
with open(gitignore, "w") as f:
|
with open(gitignore, "w") as f:
|
||||||
f.write(
|
f.write("*\n")
|
||||||
"""*
|
|
||||||
!.gitignore
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
|
|
||||||
return specific_data_directory
|
return specific_data_directory
|
||||||
|
|||||||
Reference in New Issue
Block a user