This boils down to a git safe.directory issue.

Solution 1:
$ git config --global --add safe.directory /path/to/openembedded-core

Solution 2 (backporting from current master):
$ cd /path/to/openembedded-core
git cherry-pick -x 3266c327dfa186791e0f1e2ad63c6f5d39714814 af27c81eaf68ee681dcd9456a74cca6a9ab40bf6