Fix corner case when syncing an empty git worktree
Fix corner case when syncing an empty git worktree

Change-Id: I6056237491edd10bec32d6f9e252a6711f43928c

dmerejkowsky/qibuild,dmerejkowsky/qibuild,aldebaran/qibuild,dmerejkowsky/qibuild,aldebaran/qibuild,dmerejkowsky/qibuild,aldebaran/qibuild,aldebaran/qibuild,dmerejkowsky/qibuild