codepipeline-git-metadata-example
codepipeline-git-metadata-example copied to clipboard
Skip execution if the working copy is already a valid clone
trafficstars
I found this script didn't work when running in CodeBuild Local because my working copy was already a valid clone. Rather than temp hacks to the code or environment I've made a small addition to the script to check early on if there is a .git directory and exit cleanly if so.