Skip to content

Windows gitconfig credential helper quoting breaks GitPython / ComfyUI-Manager #1090

Description

@gregorycarnegie

On Windows, Pinokio generated D:\pinokio\gitconfig with credential helper lines like:

helper=!'D:\pinokio\bin\miniconda\Scripts\gh.exe' auth git-credential

Git rejects this with:

fatal: bad config line 27 in file D:\pinokio\gitconfig

Impact:
ComfyUI starts, but ComfyUI-Manager fails during startup/import because GitPython runs git version, and Git exits 128.

Environment:

  • Windows: 10.0.26200.8655
  • App: ComfyUI launched through Pinokio
  • ComfyUI version: 0.22.0
  • Python: 3.10.16
  • PyTorch: 2.7.0+cu128

Fix/workaround:
Changing the helper lines by removing the single quotes around the executable path and using forward slashes fixed it:

helper = !D:/pinokio/bin/miniconda/Scripts/gh.exe auth git-credential

There were two affected entries in my file:

  • [credential "https://github.com"]
  • [credential "https://gist.github.com"]
Error log before the workaround:

Microsoft Windows [Version 10.0.26200.8655] (c) Microsoft Corporation. All rights reserved.

D:\pinokio\api\comfy.git\app>conda_hook & conda deactivate & conda deactivate & conda deactivate & conda activate base & D:\pinokio\api\comfy.git\app\env\Scripts\activate D:\pinokio\api\comfy.git\app\env && python main.py
[INFO] setup plugin alembic.autogenerate.schemas
[INFO] setup plugin alembic.autogenerate.tables
[INFO] setup plugin alembic.autogenerate.types
[INFO] setup plugin alembic.autogenerate.constraints
[INFO] setup plugin alembic.autogenerate.defaults
[INFO] setup plugin alembic.autogenerate.comments
[START] Security scan
[DONE] Security scan
[ERROR] Failed to execute startup-script: D:\pinokio\api\comfy.git\app\custom_nodes\ComfyUI-Manager\prestartup_script.py / Failed to initialize: Cmd('git') failed due to: exit code(128)
cmdline: git version
stderr: 'fatal: bad config line 27 in file D:\pinokio\gitconfig'
[INFO]
Prestartup times for custom nodes:
[INFO] 4.5 seconds (PRESTARTUP FAILED): D:\pinokio\api\comfy.git\app\custom_nodes\ComfyUI-Manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions