force git -C $root to make sure it gets its root