author | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 May 2010 05:37:24 +0000 (22:37 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 May 2010 05:37:24 +0000 (22:37 -0700) |
* rc/maint-curl-helper:
remote-curl: ensure that URLs have a trailing slash
http: make end_url_with_slash() public
t5541-http-push: add test for URLs with trailing slash
Conflicts:
remote-curl.c
remote-curl: ensure that URLs have a trailing slash
http: make end_url_with_slash() public
t5541-http-push: add test for URLs with trailing slash
Conflicts:
remote-curl.c
1 | 2 | |||
---|---|---|---|---|
http.c | patch | | diff1 | | diff2 | | blob | history |
http.h | patch | | diff1 | | diff2 | | blob | history |
remote-curl.c | patch | | diff1 | | diff2 | | blob | history |
t/t5541-http-push.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc http.c
Simple merge
diff --cc http.h
Simple merge
diff --cc remote-curl.c
index 07827562b56e38be543201f80e77ea581f9428f3,1fe59d6db0e85ab938959f08d3bca4a83f748ab5..24fbb9a9b972c1078b3688b2d0683c9704e09ee6
--- 1/remote-curl.c
--- 2/remote-curl.c
+++ b/remote-curl.c
#include "sideband.h"
static struct remote *remote;
- static const char *url;
+ static const char *url; /* always ends with a trailing slash */
-static struct walker *walker;
struct options {
int verbosity;
remote = remote_get(argv[1]);
if (argc > 2) {
- url = argv[2];
+ end_url_with_slash(&buf, argv[2]);
} else {
- url = remote->url[0];
+ end_url_with_slash(&buf, remote->url[0]);
}
+ url = strbuf_detach(&buf, NULL);
+
+ http_init(remote);
+
do {
if (strbuf_getline(&buf, stdin, '\n') == EOF)
break;
diff --cc t/t5541-http-push.sh
Simple merge