Closed stefan-muc closed 11 months ago
@stefan-muc Can you retry using yadm gitconfig
instead of yadm config
, per https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#commands ?
I know this isn't intuitive. It would be preferable that, if yadm config
is passed a setting that doesn't apply to yadm, that yadm simply passes it onto git. Unfortunately, that doesn't seem to be the case.
https://github.com/TheLocehiliosan/yadm/issues/251 may provide you some ideas on how to work around this issue.
@stefan-muc Can you retry using
yadm gitconfig
instead ofyadm config
Oh great, this works! Thank you very much for your support!
Motivation: Git does indent
.gitconfig
with tabs (see StackOverflow), but I have that mixed in my config. I want to make sure that I only commit tabs - which could be done elegantly using a git filter.But as far as I figured out:
Describe the bug
yadm
doesn't seem to apply git filter during staging of a changed fileTo reproduce
Steps to reproduce the behavior:
yadm
with an already commited.gitignore
(filename doesn't matter, but example has to be changed then).gitignore
to make file dirtySet up a test filter:
You can confirm that configuration is set up correctly reading it:
But staging a change in the file doesn't apply the filter:
If you re-do the whole setup but use
git
instead ofyadm
, it works as expected:I would expect
yadm
to apply the filter just asgit
with same config does. How can I achieve this? Documentation didn't tell me why this shouldn't work.Can this be reproduced with the yadm/testbed docker image: [not tested]
Environment
Tested on Debian 12.2 using git version 2.39.2, yadm version 3.2.2