I have a script to output git commits with specific jira ticket and within a date and time range, however i keep hitting an error, my codes are below:
SINCE="2021-02-26 17:59:58"
BEFORE="2021-03-05 17:59:58"
CMD="git log -p -m -name-status --since=\"${SINCE}\" --before=\"${BEFORE}\" --grep=${TICKET}
${CMD} >> out.txt
Error:
Fatal: Invalid object name '17'
I tried enclosing the cmd with "" "${CMD}"
also getting same error.
Anyone know what is wrong with it?