Avoid git warning when cloning repo and specifying a git hash code in branch var

Warning is :
warning: Remote branch 417b9918f9bbecf07a2311a04ea72faa937b17c9 not found in upstream origin, using HEAD instead