-
-
Notifications
You must be signed in to change notification settings - Fork 934
repo.index.add('.') adds .git directory #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the easiest would be to call the git command directly, such as in: import git
r = git.Repo()
r.git.add(u=True) Of course this functionality could also be emulated using pure-python, but unless you want to do special processing, I don't think it's worth the effort, both for the developer or for the CPU. To answer your question, In future, you might consider using stackoverflow along with the GitPython tag as it usually yields better answers, faster. Please close this issue if your problem is solved. |
You can watch the development stream on youtube.
|
Yes, it solves for me, Great video by the way. ;) |
Just a note for anyone else who stumbles onto this and might make the same mistake.
|
I find |
Thanks @Byron This was really helpful |
When I perform
repo.index.add('.')
gitpython adds.git
directory...The question is how can I add all changed files to stage without including the
.git
dir?Thanks for this great project. :)
The text was updated successfully, but these errors were encountered: