15 int fetch(unsigned char *sha1
)
17 write(fd_out
, sha1
, 20);
18 return write_sha1_from_fd(sha1
, fd_in
);
21 int main(int argc
, char **argv
)
27 while (arg
< argc
&& argv
[arg
][0] == '-') {
28 if (argv
[arg
][1] == 't') {
30 } else if (argv
[arg
][1] == 'c') {
32 } else if (argv
[arg
][1] == 'a') {
40 usage("rpull [-c] [-t] [-a] commit-id url");
43 commit_id
= argv
[arg
];
46 if (setup_connection(&fd_in
, &fd_out
, "git-rpush", url
, arg
, argv
+ 1))