Skip to content

Commit 22f5b7a

Browse files
committed
Merge pull request vcstools#71 from vcstools/submodule_updates
update submodules on checkout Tests ticketed in vcstools#75
2 parents 26b7c6d + 3b87335 commit 22f5b7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vcstools/git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def checkout(self, url, refname=None, verbose=False, shallow=False):
192192
return self._do_update(refname,
193193
verbose=verbose,
194194
fast_foward=True,
195-
update_submodules=False)
195+
update_submodules=True)
196196
else:
197197
return True
198198
except GitError:

test/test_git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def isubm(self, verbose=False):
206206
self.assertFalse(client.path_exists())
207207
self.assertFalse(client.detect_presence())
208208
self.assertTrue(client.checkout(url, 'test_branch'))
209-
self.assertEqual(0, client.submodules)
209+
self.assertEqual(1, client.submodules)
210210
self.assertEqual(0, client.fetches)
211211
self.assertEqual(0, client.fast_forwards)
212212

0 commit comments

Comments
 (0)