vinodc / gitlab-webhook-branch-deployer Goto Github PK
View Code? Open in Web Editor NEWClones and maintains directories with the latest contents of a branch.
License: GNU General Public License v2.0
Clones and maintains directories with the latest contents of a branch.
License: GNU General Public License v2.0
I'm not sure if anyone is still watching this, but I've run into an issue and I'm still not very good with Python.
python /opt/hookhandler/gitlab-webhook.py --port 8000 git@<removed> /media/gitrepo/
April 16 21:28:29 INFO Starting HTTP Server at 0.0.0.0:8000.
April 16 21:28:48 INFO Received POST request.
<removed> - - [16/Apr/2014 21:28:48] "POST / HTTP/1.1" 200 -
April 16 21:28:48 DEBUG Running command: git clone --depth 1 -o origin -b master git@<removed>/test.git master
----------------------------------------
Exception happened during processing of request from ('<removed>', 58697)
Traceback (most recent call last):
File "/usr/lib64/python2.6/SocketServer.py", line 293, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 319, in process_request
self.finish_request(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.6/SocketServer.py", line 627, in __init__
self.handle()
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
method()
File "/opt/hookhandler/gitlab-webhook.py", line 62, in do_POST
self.update_branch(branch_to_update)
File "/opt/hookhandler/gitlab-webhook.py", line 84, in update_branch
return self.add_branch(branch)
File "/opt/hookhandler/gitlab-webhook.py", line 77, in add_branch
(branch, repository, branch))
File "/opt/hookhandler/gitlab-webhook.py", line 118, in run_command
stderr=subprocess.STDOUT)
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
raise child_exception
TypeError: execv() argument 1 must be encoded string without NULL bytes, not str
----------------------------------------
Any help you might be able to provide would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.