Skip to content

Solve issue with custom git config not being read

Mette Bentsen requested to merge solve-config-issue into dev

Hi all,

The dev README currently contains a step to add a custom output-cleaning step for notebooks using:
git config --local include.path .gitconfig

This command seems to not work any more. The keys are not being expanded and are just added to .git/config as:

[include]
	path = .gitconfig

The fix is to manually add the parameters to the .git/config using:
cat .gitconfig >> .git/config

This will add the parameters to the config as:

[filter "strip-notebook-output"]
     clean = "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR"

@Jan.Detleffsen @Yousef.Alayoubi @Micha-Frederick.Kessler @hendrik.schultheis and anyone pushing notebooks, please be advised of this change. Sorry for the confusion.

Merge request reports

Loading