##// END OF EJS Templates
cmdserver, runcommand: properly handle the client sending no arguments...
Idan Kamara -
r14707:964a7203 stable
parent child Browse files
Show More
@@ -171,7 +171,10 b' class server(object):'
171 and writes the return code to the result channel """
171 and writes the return code to the result channel """
172
172
173 length = struct.unpack('>I', self._read(4))[0]
173 length = struct.unpack('>I', self._read(4))[0]
174 args = self._read(length).split('\0')
174 if not length:
175 args = []
176 else:
177 args = self._read(length).split('\0')
175
178
176 # copy the ui so changes to it don't persist between requests
179 # copy the ui so changes to it don't persist between requests
177 req = dispatch.request(args, self.ui.copy(), self.repo, self.cin,
180 req = dispatch.request(args, self.ui.copy(), self.repo, self.cin,
General Comments 0
You need to be logged in to leave comments. Login now