I have written the attached batch file to create a file called gitcommit.h which will hold details of my commit.
I have tested this file at the command line in my repository and it works as expected, creating a file that contains the line:
#define GIT_COMMIT_HASH <git description>
I have added this script as a pre-build step in CCS v10 as:
${PROJECT_ROOT}/PSU_git_hash.bat
It prints the line at the start of the build, but doesn't execute the command.
Any ideas why it doesn't execute the batch file?