gitconfig in kas container

5 views
Skip to first unread message

Christian Leeb

unread,
Mar 13, 2026, 7:49:54 AM (12 days ago) Mar 13
to kas-devel
Hi, 
I would like to inject some git config attributes into a KAS container.
The config is in  gitconfig.kas

[pack]
        threads = 1

Seems that setting GITCONFIG_FILE to the path does not work.

Eventually I would expect to see the git config attribute when I start container shell and do a "git config -list". But I only see the kas default git config:

scripts/kas-container --git-credential-store ~/.git-credentials --runtime-args "-e  ..." shell --update mykasconfig.yaml

builder@621c65a5519c:/build$git config --list
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=store --file=/var/kas/userdata/.git-credentials
user.name=kas User
user.email=k...@example.com

Regards, Chris


Jan Kiszka

unread,
Mar 18, 2026, 9:34:28 AM (7 days ago) Mar 18
to Christian Leeb, kas-devel
I just tried to reproduce locally (using current next branch):

GITCONFIG_FILE=/some/gitconfig kas-container shell
...
builder@9bbcaea9edde:/work/build$ git config --list
...
pack.threads=1

So it worked here.

Could you clarify your setup (version etc.) and may try to debug what is
passed via "--log-level debug"?

Jan

--
Siemens AG, Foundational Technologies
Linux Expert Center
Reply all
Reply to author
Forward
0 new messages