Git: Fix autostash for branches

Broken by 771fe03cfeda0b8514556ca29889fb35116a41c5

Change-Id: Ifb629535d2197bbee771050c94952068834614f3
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>