| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 809c791 commit 09a96fb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -936,3 +936,11 @@ class Repo(object): | |||
| 936 | 936 | relative_path = Submodule._to_relative_path(super_repo, submodule_path) | |
| 937 | 937 | msg = '_to_relative_path should be "submodule_path" but was "%s"' % relative_path | |
| 938 | 938 | assert relative_path == 'submodule_path', msg | |
| 939 | + | ||
| 940 | + @with_rw_directory | ||
| 941 | + def test_depth(self, rwdir): | ||
| 942 | + parent = git.Repo.init(osp.join(rwdir, 'test_depth')) | ||
| 943 | + sm_name = 'mymodules/myname' | ||
| 944 | + sm_depth = 1 | ||
| 945 | + sm = parent.create_submodule(sm_name, sm_name, url=self._small_repo_url(), depth=sm_depth) | ||
| 946 | + assert len(list(sm.module().iter_commits())) == sm_depth | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments