diff --git a/toolchain-m68k b/toolchain-m68k index 3d00eb2..0bac3f6 100755 --- a/toolchain-m68k +++ b/toolchain-m68k @@ -258,10 +258,17 @@ def shallowCheckout(murl, mpath, mbranch): if path.exists(path.join(mpath, '.git')): return - if mbranch == None: - execute('git', 'clone', murl, '--depth', '1', mpath) + if '/bebbo/' in murl: + if mbranch == None: + execute('git', 'clone', murl, '--depth', '1', mpath) + else: + execute('git', 'clone', murl, '--depth', '1', '-b', mbranch, mpath) else: - execute('git', 'clone', murl, '--depth', '1', '-b', mbranch, mpath) + if mbranch == None: + execute('git', 'clone', murl, mpath) + else: + execute('git', 'clone', murl, '-b', mbranch, mpath) + def update(): execute('git', 'submodule', 'init');