Created
February 12, 2015 06:40
-
-
Save jk/197bc12063c69ab93468 to your computer and use it in GitHub Desktop.
Within composer's vendor directory MUST NOT contain any modification. This script cleans it up for git repos.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIT=`which git` | |
GIT_DIRS=`find vendor -name .git -type d` | |
for GIT_DIR in $GIT_DIRS; do | |
if [ -d "${GIT_DIR}" ]; then | |
WORK_TREE=`dirname ${GIT_DIR}` | |
${GIT} --git-dir=${GIT_DIR} --work-tree=${WORK_TREE} clean -f | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment