Skip to content

Commit 9a3a60b

Browse files
committed
fix: enable core.longpaths on git commands
1 parent 2d14af9 commit 9a3a60b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggshield/utils/git_shell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def git(
204204
try:
205205
logger.debug("command=%s timeout=%d", command, timeout)
206206
result = subprocess.run(
207-
[_get_git_path(), "-c", "core.quotePath=false"] + command,
207+
[_get_git_path(), "-c", "core.quotePath=false", "-c", "core.longpaths=true"]
208+
+ command,
208209
check=check,
209210
capture_output=True,
210211
timeout=timeout,

0 commit comments

Comments
 (0)