fix git branch -m in presence of cross devices