Answer the question
In order to leave comments, you need to log in
"env filter failed" when doing git filter-branch. Where is the mistake?
I'm trying to edit the meta information of a commit with the command:
git filter-branch -f --env-filter \
'[ $GIT_COMMIT = 836dea22e7ee29381569b429d3e1f3b9c62751a6 ] && echo TEST'
Rewrite a345a0c5bc7aee029c7feaf2fa9ab8f621a6964f (1/10)
(0 seconds passed, remaining 0 predicted)
env filter failed:
[ $GIT_COMMIT = 836dea22e7ee29381569b429d3e1f3b9c62751a6 ] && echo TEST
[ $GIT_COMMIT = 836dea22e7ee29381569b429d3e1f3b9c62751a6 ]
[ "$GIT_COMMIT" = "836dea22e7ee29381569b429d3e1f3b9c62751a6" ]
[ $GIT_COMMIT -eq 836dea22e7ee29381569b429d3e1f3b9c62751a6 ]
git filter-branch -f --env-filter '[ $GIT_COMMIT = <hash> ] && echo TEST || true'
Answer the question
In order to leave comments, you need to log in
Trying to edit the commit meta info
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question