Skip to content

Commit a6b80a1

Browse files
committed
test: Fix git.pull(reftag) test
1 parent 2bf79ca commit a6b80a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libvcs/cmd/git.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,12 @@ def pull(
758758
'Already up to date.'
759759
760760
Fetch via ref:
761-
>>> git = Git(dir=git_local_clone.dir)
761+
>>> git = Git(dir=tmp_path)
762+
>>> git.run(['init'])
763+
'Initialized ...'
762764
>>> git_remote_repo = create_git_remote_repo()
763765
>>> git.pull(reftag=f'file://{git_remote_repo}')
764-
'Already up to date.'
766+
''
765767
>>> git.dir.exists()
766768
True
767769
"""

0 commit comments

Comments
 (0)