X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fremote-ext.c;h=692c834d9dd48615e42b67e3924c64e3397ad903;hb=8997da3820a0f55d156f43f3bb71856580df160d;hp=ea71977c8360e1a7899bbd035cf26f93d889800b;hpb=75513914784bb75447c71e3b001612ee37af386c;p=git.git diff --git a/builtin/remote-ext.c b/builtin/remote-ext.c index ea71977c8..692c834d9 100644 --- a/builtin/remote-ext.c +++ b/builtin/remote-ext.c @@ -1,4 +1,4 @@ -#include "git-compat-util.h" +#include "builtin.h" #include "transport.h" #include "run-command.h" @@ -30,16 +30,12 @@ static char *strip_escapes(const char *str, const char *service, size_t rpos = 0; int escape = 0; char special = 0; - size_t pslen = 0; - size_t pSlen = 0; size_t psoff = 0; struct strbuf ret = STRBUF_INIT; /* Calculate prefix length for \s and lengths for \s and \S */ if (!strncmp(service, "git-", 4)) psoff = 4; - pSlen = strlen(service); - pslen = pSlen - psoff; /* Pass the service to command. */ setenv("GIT_EXT_SERVICE", service, 1);