added support to switch repo head to commit if the commit is provided.
added support to switch repo head to commit if the commit is provided.

antoinehage/soajs.buildImages,antoinehage/soajs.buildImages