Make commit to orphan branch (initial commit) work

Fix regression of 9673785ccf300f424ac3ddd04cf8508eb93ce696

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