简体   繁体   中英

Unable to clone hosted Repository using NodeGit

I have created a GIT Bare Repository in the Linux server.

And while I try to clone the repository using Nodegit from the local workstation, I'm getting the following error.,

err { Error: received unexpected content-type errno: -1 }.

Following is the apache access log,

/gitrepos/repository/info/refs?service=git-upload-pack HTTP/1.1" 200 59 "-" "git/1.0 (libgit2 0.25.0)"

This is returning "refs" as text.

Any help is much appreciated.

Thanks in advance.

Thanks for the response.

I was able to sort out this Issue by myself.

It was an Issue with the Apache Configuration, where it was not processing the Request. After the Smart HTTP Protocol Configurations, everything works as charm.

Thanks,

Ramesh Gurusamy,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM