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