X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ssh-upload.c;h=0b52ae15cbd216bff5002c89e0c8af84ea68ed1a;hb=aa1cef54a2bcc5350df7efe1d1745725c46bf2e3;hp=b675a0b1f1df7d313f8201d59ad25b1c3d53a2f4;hpb=a549e11cc2fee10ddf66dd98ea79f7c624eee34e;p=git.git diff --git a/ssh-upload.c b/ssh-upload.c index b675a0b1f..0b52ae15c 100644 --- a/ssh-upload.c +++ b/ssh-upload.c @@ -12,12 +12,10 @@ #include "rsh.h" #include "refs.h" -#include - static unsigned char local_version = 1; -static unsigned char remote_version = 0; +static unsigned char remote_version; -static int verbose = 0; +static int verbose; static int serve_object(int fd_in, int fd_out) { ssize_t size; @@ -134,7 +132,7 @@ int main(int argc, char **argv) commit_id = argv[arg]; url = argv[arg + 1]; if (get_sha1(commit_id, sha1)) - usage(ssh_push_usage); + die("Not a valid object name %s", commit_id); memcpy(hex, sha1_to_hex(sha1), sizeof(hex)); argv[arg] = hex;