removed --depth 1 from git clone - prepare to be obsolete

This commit is contained in:
bebbo 2018-02-10 09:27:35 +01:00
parent d5c3bb912e
commit 1882c1bda0
1 changed files with 3 additions and 9 deletions

View File

@ -261,16 +261,10 @@ def shallowCheckout(murl, mpath, mbranch):
if path.exists(path.join(mpath, '.git')):
return
if '/bebbo/' in murl:
if mbranch == None:
execute('git', 'clone', murl, '--depth', '1', mpath)
else:
execute('git', 'clone', murl, '--depth', '1', '-b', mbranch, mpath)
if mbranch == None:
execute('git', 'clone', murl, mpath)
else:
if mbranch == None:
execute('git', 'clone', murl, mpath)
else:
execute('git', 'clone', murl, '-b', mbranch, mpath)
execute('git', 'clone', murl, '-b', mbranch, mpath)
def update():