removed --depth 1 from git clone - prepare to be obsolete
This commit is contained in:
parent
d5c3bb912e
commit
1882c1bda0
|
@ -261,16 +261,10 @@ def shallowCheckout(murl, mpath, mbranch):
|
||||||
if path.exists(path.join(mpath, '.git')):
|
if path.exists(path.join(mpath, '.git')):
|
||||||
return
|
return
|
||||||
|
|
||||||
if '/bebbo/' in murl:
|
if mbranch == None:
|
||||||
if mbranch == None:
|
execute('git', 'clone', murl, mpath)
|
||||||
execute('git', 'clone', murl, '--depth', '1', mpath)
|
|
||||||
else:
|
|
||||||
execute('git', 'clone', murl, '--depth', '1', '-b', mbranch, mpath)
|
|
||||||
else:
|
else:
|
||||||
if mbranch == None:
|
execute('git', 'clone', murl, '-b', mbranch, mpath)
|
||||||
execute('git', 'clone', murl, mpath)
|
|
||||||
else:
|
|
||||||
execute('git', 'clone', murl, '-b', mbranch, mpath)
|
|
||||||
|
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
|
|
Loading…
Reference in New Issue