buildhistory.bbclass checks whether BUILDHISTORY_DIR is an initialized Git repository with 'if [ ! -d .git ]'. This won't work when BUILDHISTORY_DIR is a Git submodule, since .git is a regular file in that case (containing something like 'gitdir: ../.git/modules/foo'). Changing the test to 'if [ ! -e .git ]' fixes the problem. The broken test causes 'git init' to be rerun in the submodule, which for some reason turns 'worktree' in .git/modules/foo/config into an absolute path. This in turn makes the entire repository non-relocatable. (Commands like 'git diff' fail with "fatal: Could not switch to '/home/ulf/poky': No such file or directory".)
Fixed in oe-core 'master' by this commit: http://git.openembedded.org/openembedded-core/commit/?id=a5e931e0b1d941cc938fe2f49625c54b07fab0ce