Make local variable const

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
[WIP] Skip refs that have only remote tracking branch

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>