Added post-push clean up of the working dir

This commit is contained in:
anurse 2015-01-08 14:16:32 -08:00
Родитель b82784a471
Коммит 3727d49e56
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -3,7 +3,7 @@ default branch="dev"
default baseMessage="Updated kvm"
default workdir="${Path.Combine(Directory.GetCurrentDirectory(), ".pushkvm")}"
-// Clean up the checkout directory
-// Clean up the checkout directory if it's still here from last time
-// Need to use robocopy-delete because of git's permissions
robocopy-delete dir="${workdir}" if="Directory.Exists(workdir)"
@ -45,4 +45,7 @@ git gitCommand='clone ${repo} ${workdir} --branch="${branch}"'
-// Add everything! (":/" refers to the repo root, "-A" is add all recursively)
git gitCommand='add -A :/' gitFolder='${workdir}'
git gitCommand='commit -m"${baseMessage} (from kvm commit ${commit})"' gitFolder='${workdir}'
git gitCommand='push ${repo} ${branch}:${branch}' gitFolder='${workdir}'
git gitCommand='push ${repo} ${branch}:${branch}' gitFolder='${workdir}'
-// Clean up!
robocopy-delete dir="${workdir}" if="Directory.Exists(workdir)"