fix the error message shown when the server sends a bad ref line Exposed by trying to run got clone -l against shithub.us over git:// found by abieber@
diff --git a/libexec/got-fetch-pack/got-fetch-pack.c b/libexec/got-fetch-pack/got-fetch-pack.c
index 10f3a9c..299f0e6 100644
--- a/libexec/got-fetch-pack/got-fetch-pack.c
+++ b/libexec/got-fetch-pack/got-fetch-pack.c
@@ -311,7 +311,7 @@ tokenize_refline(char **tokens, char *line, int len, int maxtokens)
}
}
if (i <= 2)
- err = got_error(GOT_ERR_NOT_REF);
+ err = got_error(GOT_ERR_BAD_PACKET);
done:
if (err) {
int j;