Closed AdityaNambiar closed 4 years ago
Don't you have to use %20
instead of spaces in URLs? Maybe try that.
That did not work, unfortunately. I also tried '+' but it just takes the literal string.
playground@adityanambiar-HP:~$ git clone 'http://localhost:7005/projects/bare/proj%2001.git'
Cloning into 'proj%2001'...
warning: You appear to have cloned an empty repository.
Maybe it's because you're using quotes around the URL. Instead of:
$ git clone 'http://localhost:7005/projects/bare/proj%2001.git'
Try like:
$ git clone http://localhost:7005/projects/bare/proj%2001.git
That way git will take the URL instead of a literal string?
playground@adityanambiar-HP:~$ git clone http://localhost:7005/projects/bare/proj%2001.git
Cloning into 'proj%2001'...
warning: You appear to have cloned an empty repository.
It still takes it as literal string. Just to be sure that it can access it at the same place (there is no authentication, neither on node-git-server nor on the repo), I tried git clone from the filesystem:
playground@adityanambiar-HP:~$ git clone Downloads/MajorProject/MajorProject-master/IpfsServer/projects/bare/proj\ 01.git/ ./'proj 01'
Cloning into './proj 01'...
done.
Anyway, I don't require to find a solution for this now because we decided to substitute spaces in repository names with hyphens just like how GitHub does.
However if you wish to try it yourself and post it here, you may do so otherwise I'll close this issue tomorrow.
Hello, I am trying to clone a repository which is on my local system. It works if I try to use relative path to the '.git' directory:
But when I use it with the HTTP protocol (like so with the localhost:port), it gives a
This is not the same if the repository does not have spaces, which means that it works for repositories that do not have spaces on their name:
Unfortunately, git only throws the error and does not elaborate what went wrong. I am looking for a solution to perform 'git clone' on such user repositories via node-git-server.