Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freecad: Ignore global gitconfig #25

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Conversation

ppd
Copy link
Contributor

@ppd ppd commented Oct 28, 2021

If a global /etc/gitconfig exists, git inside the sandbox will attempt to read it.
However, this is forbidden and thus git inside the snap fails with:

warning: unable to access '/etc/gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files

As a result, the addon manager gets stuck at the "Cloning module..." stage.
Prevent this by telling git to ignore the global config, which is not necessary at all
to download the addons.

If a global /etc/gitconfig exists, git inside the sandbox will attempt to read it.
However, this is forbidden and thus git inside the snap fails with:

warning: unable to access '/etc/gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files

As a result, the addon manager gets stuck at the "Cloning module..." stage.
Prevent this by telling git to ignore the global config, which is not necessary at all
to download the addons.

Signed-off-by: Maximilian Federle <max.federle@gmail.com>
@ppd ppd mentioned this pull request Oct 29, 2021
@ppd ppd closed this Jan 12, 2022
@vejmarie vejmarie reopened this Jan 12, 2022
@vejmarie vejmarie merged commit 43000bd into opencomputeproject:master Jan 12, 2022
@vejmarie
Copy link
Member

Sorry I have been away from the project for too much time. I am now back

@ppd ppd deleted the patch-1 branch January 14, 2022 08:47
@ppd
Copy link
Contributor Author

ppd commented Jan 16, 2022

Good to see. Two new FreeCAD snaps have emerged in the meantime:
freecad-realthunder: https://github.com/realthunder/FreeCAD/tree/LinkDaily/snap
freecad-ppd: https://github.com/ppd/freecad-ppd

Maybe we can reduce redundancy at some point in the future and merge the snaps. We'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants