Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e748da2

Browse files
Remove clone depth check
1 parent ec2e15f commit e748da2

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

testing/util.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,3 @@ def git_commit(*args, **kwargs):
142142
if msg is not None: # allow skipping `-m` with `msg=None`
143143
cmd += ('-m', msg)
144144
return fn(*cmd, **kwargs)
145-
146-
147-
def git_ref_count(repo):
148-
_, out, _ = cmd_output('git', 'rev-list', '--all', '--count', cwd=repo)
149-
return int(out.split()[0])

tests/store_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from testing.fixtures import git_dir
1717
from testing.util import cwd
1818
from testing.util import git_commit
19-
from testing.util import git_ref_count
2019

2120

2221
def test_our_session_fixture_works():
@@ -83,7 +82,6 @@ def test_clone(store, tempdir_factory, log_info_mock):
8382
assert dirname.startswith('repo')
8483
# Should be checked out to the rev we specified
8584
assert git.head_rev(ret) == rev
86-
assert git_ref_count(ret) == 1
8785

8886
# Assert there's an entry in the sqlite db for this
8987
assert store.select_all_repos() == [(path, rev, ret)]

0 commit comments

Comments
 (0)