-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'trim' of undefined #7
Comments
This is happening for one of our projects as well. I have removed the references within it. This command does work with the installed version of Git.
|
Hi guys, the problem is in old |
ok thanks for your feedback. I will check when I have some free time |
I updated |
|
I open another one because issue persists using node > 0.11.5
It's impossible to list remotes, thus to use bower.
I have the same kind of error using git or http protocol.
HTTP
C:\issue>node node_modules\nogit\bin\git.js ls-remote --tags http://github.com/m
oment/moment.git
C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git-net\smart-htt
p.js:191
if (line.trim() !== '# service=git-upload-pack') {
^
TypeError: Cannot read property 'trim' of undefined
at C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git-net\sm
art-http.js:191:19
at read (C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git-
net\node_modules\push-to-pull\transform.js:14:32)
at onRead (C:\issue\node_modules\nogit\node_modules\git-node\node_modules\gi
t-net\node_modules\push-to-pull\transform.js:31:14)
at check (C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git
-node-platform\stream.js:45:16)
at IncomingMessage. (C:\issue\node_modules\nogit\node_modules\git
-node\node_modules\git-node-platform\stream.js:28:5)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
GIT
C:\issue>node node_modules\nogit\bin\git.js ls-remote --tags http://github.com/m
oment/moment.git
C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git-net\smart-htt
p.js:191
if (line.trim() !== '# service=git-upload-pack') {
^
TypeError: Cannot read property 'trim' of undefined
at C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git-net\sm
art-http.js:191:19
at read (C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git-
net\node_modules\push-to-pull\transform.js:14:32)
at onRead (C:\issue\node_modules\nogit\node_modules\git-node\node_modules\gi
t-net\node_modules\push-to-pull\transform.js:31:14)
at check (C:\issue\node_modules\nogit\node_modules\git-node\node_modules\git
-node-platform\stream.js:45:16)
at IncomingMessage. (C:\issue\node_modules\nogit\node_modules\git
-node\node_modules\git-node-platform\stream.js:28:5)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
The text was updated successfully, but these errors were encountered: