uBoot git failed. unable to checkout.

git clone failed with HEAD refers to nonexistent ref, unable to
checkout.

I also tried compile from mainline. That failed with "cannot be
declared weak" error.

Anyone can come up with a solution?

setup@BeagleSetup:~/kernel/uBoot$ git clone
http://git.gitorious.org/beagleboard-default-u-boot/beagle_uboot_revc4.git
Initialized empty Git repository in /home/setup/kernel/uBoot/
beagle_uboot_revc4/.git/
Getting alternates list for http://git.gitorious.org/beagleboard-default-u-boot/beagle_uboot_revc4.git
Getting pack list for http://git.gitorious.org/beagleboard-default-u-boot/beagle_uboot_revc4.git
Getting index for pack 5db87830403bc79cd4eaf774e41a521bc0ad615e
Getting pack 5db87830403bc79cd4eaf774e41a521bc0ad615e
which contains 2c4b1fb1f5cbcb328c76f26d6a3cd7a60ed19dc5
walk 2c4b1fb1f5cbcb328c76f26d6a3cd7a60ed19dc5
walk c0bdd7fbdf343ada1ecc65541ec3de1a5fdbfe79
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Compile from mainline error.
board.c:126: error: inline function 'coloured_LED_init' cannot be
declared weak
board.c:128: error: inline function 'red_LED_on' cannot be declared
weak
board.c:130: error: inline function 'red_LED_off' cannot be declared
weak
board.c:132: error: inline function 'green_LED_on' cannot be declared
weak
board.c:134: error: inline function 'green_LED_off' cannot be declared
weak
board.c:136: error: inline function 'yellow_LED_on' cannot be declared
weak
board.c:138: error: inline function 'yellow_LED_off' cannot be
declared weak