Closed rolandrajko closed 4 years ago
./nbstripout.cmd -t
is interpreted as a filename because you put it in ''. You need to change your .git config
to this:
[filter "nbstripout"]
clean = ./nbstripout.cmd
smudge = cat
required = true
[diff "ipynb"]
textconv = ./nbstripout.cmd -t
In that case I get the following error message:
λ git diff
'.' is not recognized as an internal or external command,
operable program or batch file.
error: external filter './nbstripout.cmd' failed 1
error: external filter './nbstripout.cmd' failed
fatal: classification.ipynb: clean filter 'nbstripout' failed
I don't have experience with Windows so I can only guess what's happening. Have you tried using the full path to nbstripout.cmd
instead of ./
? Have you tried " instead of ' ?
I remember I tried them both, but now the snippet below seems good. Thanks.
[filter "nbstripout"]
clean = nbstripout.cmd
smudge = cat
required = true
[diff "ipynb"]
textconv = nbstripout.cmd -t
Glad to hear. Can we close this?
I guess.
Hi,
I tried to Dockerize the
nbstripout
, but when I callgit diff
, I get the following error:I guess it's because of a
stdin
kind issue, but I can't figure it out. Any idea? Below the relevant files I used.Dockerfile:
nbstripout.cmd:
.git/config:
.gitattributes