Store your global ignores in e.g. ~/.gitignore_global.
Point to your global ignores using core.excludesfile=~/.gitignore_global in git config. The tilde is the important part here.
Run git xl install.
Expected behaviour
Installations succeeds. :)
Actual behaviour
[...] Failed to execute script cli
Traceback (most recent call last):
File "cli.py", line 344, in <module>
File "cli.py", line 260, in execute
File "cli.py", line 295, in install
File "cli.py", line 82, in install
File "cli.py", line 176, in update_git_file
FileNotFoundError: [Errno 2] No such file or directory: '~/.gitignore_global'
Steps to reproduce:
~/.gitignore_global
.core.excludesfile=~/.gitignore_global
in git config. The tilde is the important part here.git xl install
.Expected behaviour
Installations succeeds. :)
Actual behaviour
Possible cause
Possible solution
Use
os.path.expanduser
for the gitignore path.