Hi, I'm using gittle to automate a git process and I'm getting an error just after trying to push changes to a dev branch which is created before the push line.
This is the traceback:
File "informDiffs.py", line 104, in
main()
File "informDiffs.py", line 93, in main
repo.push_to(origin_uri = baseline_remote_path, branch_name = source_branch)
File "/usr/local/lib/python2.7/site-packages/gittle/gittle.py", line 338, in push_to
progress=progress
File "/usr/local/lib/python2.7/site-packages/dulwich/client.py", line 501, in send_pack
proto, negotiated_capabilities, progress)
File "/usr/local/lib/python2.7/site-packages/dulwich/client.py", line 339, in _handle_receive_pack_tail
self._report_status_parser.check()
File "/usr/local/lib/python2.7/site-packages/dulwich/client.py", line 118, in check
ref_status=ref_status)
dulwich.errors.UpdateRefsError: refs/heads/master failed to update
In my code I do:
repo = Gittle(baseline_local_path, origin_uri=baseline_remote_path)
repo.create_branch("master", source_branch)
repo.switch_branch(source_branch)
repo.stage([file])
Then the commit and the push.
Hi, I'm using gittle to automate a git process and I'm getting an error just after trying to push changes to a dev branch which is created before the push line. This is the traceback: File "informDiffs.py", line 104, in
main()
File "informDiffs.py", line 93, in main
repo.push_to(origin_uri = baseline_remote_path, branch_name = source_branch)
File "/usr/local/lib/python2.7/site-packages/gittle/gittle.py", line 338, in push_to
progress=progress
File "/usr/local/lib/python2.7/site-packages/dulwich/client.py", line 501, in send_pack
proto, negotiated_capabilities, progress)
File "/usr/local/lib/python2.7/site-packages/dulwich/client.py", line 339, in _handle_receive_pack_tail
self._report_status_parser.check()
File "/usr/local/lib/python2.7/site-packages/dulwich/client.py", line 118, in check
ref_status=ref_status)
dulwich.errors.UpdateRefsError: refs/heads/master failed to update
In my code I do: repo = Gittle(baseline_local_path, origin_uri=baseline_remote_path) repo.create_branch("master", source_branch) repo.switch_branch(source_branch) repo.stage([file]) Then the commit and the push.
Any ideas?