set GIT_PREVIOUS_COMMIT env var to sha1 of previous built revision