Skip to content

Instantly share code, notes, and snippets.

@hkolbeck
Created August 2, 2016 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkolbeck/050cf7b7d3fda16a41ef4e95b2270ca2 to your computer and use it in GitHub Desktop.
Save hkolbeck/050cf7b7d3fda16a41ef4e95b2270ca2 to your computer and use it in GitHub Desktop.
for pom in `git ls-tree -r --name-only --full-tree ${COMMIT} | grep 'pom.xml$'`; do
DIR=`dirname ${pom}`
if [ ${DIR} != '.' ]; then
mkdir ${TMP_DIR}/${DIR}
fi
git show ${COMMIT}:${pom} > ${TMP_DIR}/${pom}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment