File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535* .egg-info /
3636.installed.cfg
3737* .egg
38+ .python-version
3839
3940# PyInstaller
4041# Usually these files are written by a python script from a template
Original file line number Diff line number Diff line change 1717
1818import os
1919import shutil
20+ import traceback
2021from json import JSONDecodeError
2122from pathlib import Path
2223from tempfile import mkdtemp
@@ -116,6 +117,12 @@ def _setup_worktrees(self, repository):
116117 )
117118 )
118119 except Exception :
120+ exc_str = traceback .format_exc (limit = None , chain = True )
121+ if "No such file or directory" in exc_str and "Unable to create" in exc_str :
122+ communication .error (
123+ "Error when trying to sparse checkout worktree. This is likely due to using an old version of "
124+ "git. Please try with a newer version."
125+ )
119126 # NOTE: cleanup worktree
120127 try :
121128 repository .remove_worktree (worktree_path )
You can’t perform that action at this time.
0 commit comments