Replies: 4 comments
-
I see |
Beta Was this translation helpful? Give feedback.
-
A colleague suggested e.g. repo = Repo(..)
remote = repo.create_head(...)
remote.fetch(ref) # OK my `-c core.askpass=...` works here
...
for submodule in repo.submodules:
submodule.update(...) # not OK is it clashing with |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting and sharing the workaround. Maybe submodules have their own copy of the Of course, this might be a genuine bug, especially related to submodules everything is possible. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! Yeah this is what i thought as well, that submodules dont share the same I didn't find a way to call |
Beta Was this translation helpful? Give feedback.
-
Hi!
I want to override system wide and global git configs for all commands i'm running in this repo in order to set
credential.helper
to nothing (dont cache or use system store to save my passwords)This can be done with git like so:
git -c credential.helper="" fetch
but, if possible, i'd like to use gitpythons
Repo
to fetch my do my fetching, but i can't find a way to pass the-c
flag to git itself and not git-fetch. E.g. doing the following doesn't work because the flag is passed to git-fetch:because that essentially does:
git fetch -c credential.helper=""
but
git-fetch
doesn't know about any-c
flag, onlygit
does.Is this even possible with gitpython? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions