File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 35
35
* .egg-info /
36
36
.installed.cfg
37
37
* .egg
38
+ .python-version
38
39
39
40
# PyInstaller
40
41
# Usually these files are written by a python script from a template
Original file line number Diff line number Diff line change 17
17
18
18
import os
19
19
import shutil
20
+ import traceback
20
21
from json import JSONDecodeError
21
22
from pathlib import Path
22
23
from tempfile import mkdtemp
@@ -116,6 +117,12 @@ def _setup_worktrees(self, repository):
116
117
)
117
118
)
118
119
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
+ )
119
126
# NOTE: cleanup worktree
120
127
try :
121
128
repository .remove_worktree (worktree_path )
You can’t perform that action at this time.
0 commit comments