Problems with checkout of dtc (Beaglebone Black)

Hi,

I am following the recipe for the Beaglebone Black
by Robert Nelson:

    http://eewiki.net/display/linuxonarm/BeagleBone+Black

While trying to check out dtc I came accross a problem.
Since my Linux (PC) is Gentoo I had to "disassemble" the
dtc.sh-script and did the following steps by hand after
checking for the existence of the related config file:

    git clone git://git.jdl.com/software/dtc.git

which gived me a 'dtc' directory.

cd dtc; ls -l .git/config
-rw-r--r-- 1 mccramer users 259 2013-08-02 07:29 .git/config

    >git checkout master -f
    Already on 'master'
    >git pull
    Already up-to-date.
    >git branch 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf-build -D
    error: branch '65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf-build' not found.
    [1] 13159 exit 1 git branch 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf-build -D

The hashkey is from this block of the dtc-sh-script

    #git_sha="origin/master"
    #git_sha="27cdc1b16f86f970c3c049795d4e71ad531cca3d"
    #git_sha="fdc7387845420168ee5dd479fbe4391ff93bddab"
    git_sha="65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf"

What did I wrong? How can I prevent the failure?

Thank you very much for any help in advance!

Best regards,
mcc

Well it error's out, since you don't have that branch.. -D 'deletes'
the branch..

It's a hack, but [git branch ${git_sha}-build -D || true]

is a quick way to delete a branch, without checking if the branch
actually exists as the 'true' occurs if the branch didn't exist..

So here's the script re-worked without the 'hack'..

https://github.com/RobertCNelson/tools/commit/e0951b34a0d44c30cda6c594b996029b85ba2448

Regards,