aboutsummaryrefslogtreecommitdiff
path: root/ssh-upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-upload.c')
-rw-r--r--ssh-upload.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh-upload.c b/ssh-upload.c
index 498d41e19..20c35f03d 100644
--- a/ssh-upload.c
+++ b/ssh-upload.c
@@ -29,24 +29,24 @@ static int serve_object(int fd_in, int fd_out) {
}
if (!size)
return -1;
-
+
if (verbose)
fprintf(stderr, "Serving %s\n", sha1_to_hex(sha1));
remote = 0;
-
+
if (!has_sha1_file(sha1)) {
fprintf(stderr, "git-ssh-upload: could not find %s\n",
sha1_to_hex(sha1));
remote = -1;
}
-
+
if (write_in_full(fd_out, &remote, 1) != 1)
return 0;
-
+
if (remote < 0)
return 0;
-
+
return write_sha1_to_fd(fd_out, sha1);
}