Skip to content

.gitconfig SSH default Prevents Addon Installation #44

@PhoneDroid

Description

@PhoneDroid

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

For my work we use private GitHub repositories which is why I
have my .gitconfig set to default to SSH instead of HTTPS:

[url "ssh://git@github.com/"]
    insteadOf = https://github.com/

This prevents the addon manager from
installing anything and failing with:

Failed to install 3D_Printing_Tools
Git returned a non-zero exit status: 128
Called with: /app/bin/git clone --recurse-submodules https://github.com/mark1791/3D_Printing_Tools /home/<REDACTED>/.var/app/org.freecad.FreeCAD/data/FreeCAD/Mod/3D_Printing_Tools

Returned stderr:
Cloning into '/home/<REDACTED>/.var/app/org.freecad.FreeCAD/data/FreeCAD/Mod/3D_Printing_Tools'...
Bad owner or permissions on /home/<REDACTED>/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I temporarily commented that part of
the config out and it worked again.

Full version info

OS: KDE Flatpak runtime (KDE/plasmawayland/xcb)
Architecture: x86_64
Version: 1.0.0.39109 (Git) Flatpak
Build type: Release
Branch: (HEAD detached at 2fcc531)
Hash: 2fcc5317fe3aee96ca73475986a577719fc78e20
Python 3.11.11, Qt 6.7.3, Coin 4.0.3, Vtk 9.2.6, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/
Installed mods: 
  * OpenTheme 2024.9.1

Subproject(s) affected?

Addon Manager

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions