only clear the repo when necessary. closes #20
Merge pull request #21 from pulibrary/issue20

only clear the repo when necessary. closes #20