Make the repo snapshot optional

Change-Id: I6d1778b8e04e68675207f533a86501369df8f473
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
(cherry picked from commit a3982abaf3f473d994b181968dd0a445984e4a35)