After setup of an OpenEmbedded project, the sources are set to detached head state. How do you determine from which branch, either local or remote, the source code is checked out from?
Yes you can check out the branches and and compare the code. Is there a simpler approach?
I'm using Git version 1.7.1.
$ git config -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=git://arago-project.org/git/projects/meta-arago-amsdk.git
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.amsdk-06.00.00.00-integration.remote=origin
branch.amsdk-06.00.00.00-integration.merge=refs/heads/amsdk-06.00.00.00-integration
$ git branch -a
* (no branch)
amsdk-06.00.00.00-integration
master
remotes/origin/HEAD -> origin/master
remotes/origin/amsdk-05.06.00.00-integration
remotes/origin/amsdk-05.07.00.00-integration
remotes/origin/amsdk-05.08.00.00-integration
remotes/origin/amsdk-06.00.00.00-integration
remotes/origin/master
remotes/origin/master-upstream