unrecognized argument: --invert-grep

Mustafa ahmed February 5, 2023

I am trying to run this git command on my pipeline:

export GIT_RELEASE_NOTES="$(git log -n 5 --pretty=format:"- %s" --grep=booooooo --invert-grep )"

and I get this error:
fatal: unrecognized argument: --invert-grep

please note that I have run the same command on my terminal and works fine,
and if I removed "--invert-grep" from the script it works also.

what I am missing here?

1 answer

1 accepted

0 votes
Answer accepted
Mustafa ahmed February 6, 2023

It seems like the problem is in the git version, how can I update git version on pipeline?

Mustafa ahmed February 6, 2023

by using atlassian/default-image:4

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events