X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ssh-upload.c;h=20b15eab57e1c4f7c4b306010d7d12bff2308141;hb=af6feeb229110a0fa77a179c2655fca08e72f879;hp=b675a0b1f1df7d313f8201d59ad25b1c3d53a2f4;hpb=521a3f676794987bfd03703fe58fbec46ed69d49;p=git.git diff --git a/ssh-upload.c b/ssh-upload.c index b675a0b1f..20b15eab5 100644 --- a/ssh-upload.c +++ b/ssh-upload.c @@ -15,9 +15,9 @@ #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 +134,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;