author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Mon, 15 Oct 2007 13:52:25 +0000 (14:52 +0100) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 16 Oct 2007 01:59:40 +0000 (21:59 -0400) | ||
commit | ccfc02a30057a5fa7376e1fc8e8c3fe5478556f4 | |
tree | 4778f545061c2d753b135556e7423841e8dcf517 | tree | snapshot |
parent | f539d0d6c1f0b4431c0711e290d1f5a7205ed6e6 | commit | diff |
Fix compilation when NO_CURL is defined
There were a few places which did not cope well without curl. This
fixes all of them. We still need to link against the walker.o part
of the library as some parts of transport.o still call into there
even though we don't have HTTP support enabled.
If compiled with NO_CURL=1 we now get the following useful error
message:
$ git-fetch http://www.example.com/git
error: git was compiled without libcurl support.
fatal: Don't know how to fetch from http://www.example.com/git
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
There were a few places which did not cope well without curl. This
fixes all of them. We still need to link against the walker.o part
of the library as some parts of transport.o still call into there
even though we don't have HTTP support enabled.
If compiled with NO_CURL=1 we now get the following useful error
message:
$ git-fetch http://www.example.com/git
error: git was compiled without libcurl support.
fatal: Don't know how to fetch from http://www.example.com/git
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Makefile | diff | blob | history | |
transport.c | diff | blob | history |