On Thu, Sep 22, 2022 at 12:38:16PM +0300, Konstantin Khomoutov wrote:

> > > .git/config:
> > >
> > > [filter "crypt"]
> > >         clean = openssl enc -pbkdf2 -iter 10000 -aes-256-cbc -in %f && 
> > > shred %f
> > >         smudge = openssl enc -d -pbkdf2 -iter 10000 -aes-256-cbc
> > >         required
> > >
> > > .gitattributes
> > > *  filter=crypt
> [...]
> > But I still have a problem:
> > 
> > The clean filter seems to be run on git pull as well. Any ideas how to 
> > bypass this?
> > 
> 
> I can only provide an educated guess. `git pull` is basically `git fetch` plus
> `git merge` (or `git rebase` - depending on the command-line options).
[...]

...And by the way, do you really need a clean filter at all?
It's only needed to add new/modified files to Git.
>From the initial description of your task, it looked like your soultion is
for checking out already existing commits.

If so, you might try to get rid of this filter and use `git pull --ff-only`.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20220922094253.ohlhinb2ya7vlwak%40carbon.

Reply via email to