-
-
Notifications
You must be signed in to change notification settings - Fork 954
How to use --unshallow in repo.remotes.origin.pull() #1415
Answered
by
Byron
wangyinwen
asked this question in
Q&A
-
this is my code:
repo = Repo('/usr/local/sahoc/work_space/105981/codes/test_git/master')
o = repo.remotes.origin
o.pull('dev', '--unshallow')
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
Byron
Feb 26, 2022
I assume that keyword arguments are passed to git directly as described in greater detail in the docs, which means o.pull('dev', unshallow=True)
should do the job.
Replies: 1 comment
-
I assume that keyword arguments are passed to git directly as described in greater detail in the docs, which means o.pull('dev', unshallow=True)
should do the job.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
Byron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment