diff options
author | lcapriotti <lcapriotti@svn> | 2010-06-23 15:51:47 +0000 |
---|---|---|
committer | lcapriotti <lcapriotti@svn> | 2010-06-23 15:51:47 +0000 |
commit | cc333c4da3eeadfd759c84c69b23d419b6c87a09 (patch) | |
tree | 5d8f680c091103361173fc680b82815b71b7c745 /tools | |
parent | e4fa1febcecbe0ac72e2e8fad1d13975972da777 (diff) |
cope with different git versions
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31336 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/XBMCLive/SDK/buildDEBs/build-live-initramfs.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/XBMCLive/SDK/buildDEBs/build-live-initramfs.sh b/tools/XBMCLive/SDK/buildDEBs/build-live-initramfs.sh index cb7b7d3146..f6eb463594 100755 --- a/tools/XBMCLive/SDK/buildDEBs/build-live-initramfs.sh +++ b/tools/XBMCLive/SDK/buildDEBs/build-live-initramfs.sh @@ -33,7 +33,12 @@ if ! ls live-initramfs_*.udeb > /dev/null 2>&1 ; then fi cd live-boot - git checkout -b debian-old-1.0 origin/debian-old-1.0 + gitMinorVersion=$(git --version | cut -d" " -f3 | cut -d. -f2) + if [ $gitMinorVersion -eq "6" ] ; then + git checkout -b debian-old-1.0 origin/debian-old-1.0 + else + git checkout debian-old-1.0 + fi cd .. # Saved, to avoid cloning for multiple builds |