Make the repo snapshot optional

Change-Id: I6d1778b8e04e68675207f533a86501369df8f473
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>