This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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?
Try preceding the command with "cmd /c"
For example:
cmd /c ${PROJECT_ROOT}/PSU_git_hash.bat
Thanks
ki