Skip to content

Commit 7ac29a4

Browse files
committed
chore(git): remove git_submodules (unused)
1 parent eabf5ed commit 7ac29a4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libvcs/git.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ def __init__(self, url, repo_dir, **kwargs):
145145
"""
146146
if 'git_shallow' not in kwargs:
147147
self.git_shallow = False
148-
if 'git_submodules' not in kwargs:
149-
self.git_submodules = []
150148
if 'tls_verify' not in kwargs:
151149
self.tls_verify = False
152150

@@ -185,7 +183,6 @@ def obtain(self):
185183
self.info('Initializing submodules.')
186184
self.run(['submodule', 'init'], log_in_real_time=True)
187185
cmd = ['submodule', 'update', '--recursive', '--init']
188-
cmd.extend(self.git_submodules)
189186
self.run(cmd, log_in_real_time=True)
190187

191188
def update_repo(self):
@@ -335,7 +332,6 @@ def update_repo(self):
335332
return
336333

337334
cmd = ['submodule', 'update', '--recursive', '--init']
338-
cmd.extend(self.git_submodules)
339335
self.run(cmd, log_in_real_time=True)
340336

341337
def remotes(self, flat=False):

0 commit comments

Comments
 (0)