Skip to main content

All Questions

Tagged with
1 vote
1 answer
520 views

How to get gerrit URL after git upload using gitpython?

repo=Repo.clone_from(my_repo,'/path/to/clone') git=repo.git #cd to repo and do some update to my_file git.add([my_file]) git.commit("My commit message") #Upload to gerrit git.push("origin","HEAD:refs/...
rodee's user avatar
  • 3,191
0 votes
1 answer
893 views

Push refs/for/master and change-id issue using Gitpython

I have the following code where I want to push changes in my branch to gerrit using GitpYthon. repo_path_new = repo_path+repo_name repo_obj = Repo(repo_path_new) os.chdir(repo_path_new) repo_obj.git....
user535081's user avatar
0 votes
1 answer
529 views

No handlers could be found for logger "git.remote"

So I am getting the issue using gitpython: No handlers could be found for logger "git.remote" My code print repo_object.remote() # origin print repo_object.active_branch # master print repo_object....
user535081's user avatar
1 vote
2 answers
475 views

Git pull a change of a gerrit project using gitpython

I am trying to pull a change of a gerrit project into my local repository using gitpython. This can be done using the following command, git pull origin refs/changes/25/225/1 Here, refs/changes/25/...
nidHi's user avatar
  • 833