9 int fetch(unsigned char *sha1)
12 write(fd_out, sha1, 20);
13 ret = write_sha1_from_fd(sha1, fd_in);
15 pull_say("got %s\n", sha1_to_hex(sha1));
19 int main(int argc, char **argv)
25 while (arg < argc && argv[arg][0] == '-') {
26 if (argv[arg][1] == 't') {
28 } else if (argv[arg][1] == 'c') {
30 } else if (argv[arg][1] == 'a') {
34 } else if (argv[arg][1] == 'v') {
40 usage("git-rpull [-c] [-t] [-a] [-v] commit-id url");
43 commit_id = argv[arg];
46 if (setup_connection(&fd_in, &fd_out, "git-rpush", url, arg, argv + 1))