Skip to content
\n

-- I was doing it by adding dot (.) when cloning with terminal
\ngit clone https://github.com/uuu/xxxxx.git .
\n/path/to

\n

Thank you

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

I believe this invocation sets the working dir, but doesn't provide the actual ./path/to.

\n

Maybe try something along the lines of git.Git(WEBDIR + domain.name + '/www').clone(\"https://github.com/uuu/xxxxx.git\", \"./path/to\").

\n

Lastly, you can see what GitPython actually executes by using the flags described in the docs.

\n

Even though I am closing this question, please feel free to keep adding follow ups as comments.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1168#discussioncomment-408828"}}}

Clone project without project main folder. #1168

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

You must be logged in to vote

I believe this invocation sets the working dir, but doesn't provide the actual ./path/to.

Maybe try something along the lines of git.Git(WEBDIR + domain.name + '/www').clone("https://github.com/uuu/xxxxx.git", "./path/to").

Lastly, you can see what GitPython actually executes by using the flags described in the docs.

Even though I am closing this question, please feel free to keep adding follow ups as comments.

Replies: 1 comment

Comment options

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 #1083 on February 26, 2021 11:18.