All Questions
12 questions
2
votes
2
answers
1k
views
Automated git pull from local Gitlab repository using gitpython requires [email protected] password
We have a locally hosted Gitlab repository which I am trying to automate pushing and pulling with gitpython over ssh with the following script:
LOCAL_REPO_PATH = "/path/to/repository"
repo =...
0
votes
0
answers
2k
views
How do I pass username and access token automatically to Repo.clone_from() command using Gitpython?
I am trying to clone a GitLab repo in a python script using GitPython. I want it to be able to clone this private repo from GitLab without me having to manually input my username and auth token each ...
0
votes
0
answers
297
views
How to get info after push to GitLab with gitpython
I'm using the gitpython library to interact with GitLab. It works fine (push and create MR) except I can't find how to obtain a message (remote:) from GitLab after the push.
$ git push
Enumerating ...
5
votes
2
answers
6k
views
How to do a shallow clone using GitPython
I am trying to do a shallow/partial clone of a repository using GitPython.
Here is the git CLI command:
$ git clone -v --filter=tree:0 --filter=blob:none --sparse [email protected]:gitlab-org/gitlab-docs....
1
vote
1
answer
625
views
Only use gitlab light-weight tags also if there is a annotated tag - GitPython
Is there any possibillity to say that the light-weight tag will always be preferred?
My problem: I use the git tag to get the hash of the tag. With this hash I will add a file into my database. The ...
2
votes
1
answer
736
views
How can I read the projects list from a GitLab group with GitPython?
I am trying to find a way to clone all the git repositories from a remote GitLab group with Python (gitPython for example).
Can you help me, please?
7
votes
2
answers
5k
views
GitPython : git push - set upstream
Im using GitPython to clone a master branch and do a checkout of a feature branch, I do my local updates, commit and push back to git. The code snippet looks like below,
Note : my branch name is ...
2
votes
1
answer
681
views
GitLab runner, error on push whereas same thing works on git bash or python from a console
Context
We're trying to do a GitLab runner job that, on a certain tag, modifies a version header file and add a release branch/tag to this changeset.
The GitLab runner server is on my machine, ...
2
votes
0
answers
194
views
Give write access to deploy key for new project created via gitpython
I have created a script using gitpython/python3 that creates a new project in a group and assigns our deploy key to the project. This all works perfectly, but I am not sure how to give the assigned ...
1
vote
0
answers
251
views
Is it possible for me to import a bitbucket repo to gitlab using GitPython?
I currently have a bitbucket repo and am trying to import it to Gitlab using GitPython and I'm stuck as to how to do this. Is it possible and if so how would I go about doing this?
0
votes
0
answers
384
views
GitPython Via HTTPS
I am currently trying to push to Git via GitPython using HTTPS. I am able to do this successfully, but I am prompted to enter my username and password for every fetch, push, and pull operation.
I ...
1
vote
1
answer
5k
views
Clone from a Gitlab community private repo using a private token in Python script
I'd like to be able to clone a private git repository hosted on a Gitlab community edition providing my private token.
I tried using gitpython library and i can do the following :
from os.path import ...