Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use --unshallow in repo.remotes.origin.pull() #1415

Answered by Byron
wangyinwen asked this question in Q&A
Discussion options

this is my code:

 repo = Repo('/usr/local/sahoc/work_space/105981/codes/test_git/master')
 o = repo.remotes.origin
 o.pull('dev', '--unshallow')
You must be logged in to vote

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

Comment options

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.

You must be logged in to vote
0 replies
Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1414 on February 26, 2022 11:40.

AltStyle によって変換されたページ (->オリジナル) /