diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-12-20 15:16:29 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-12-20 15:16:29 +0000 |
commit | c947bf80874168f8bd3786c0ccb473cd5e6adbcb (patch) | |
tree | f245fdd3b4815fcf4ca3e41cb805f913733e69e9 /sys/src/cmd/git/fetch.c | |
parent | 614f1d6268fd986fc628eec3754bd4599363ad13 (diff) |
git: fetch all branches by default.
when the remote side creates a new branch, it is
desirable to have it show up in the repo.
Diffstat (limited to 'sys/src/cmd/git/fetch.c')
-rw-r--r-- | sys/src/cmd/git/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/fetch.c b/sys/src/cmd/git/fetch.c index 5951cfaf7..447c71a7c 100644 --- a/sys/src/cmd/git/fetch.c +++ b/sys/src/cmd/git/fetch.c @@ -260,7 +260,7 @@ fetchpack(Conn *c) if(writepkt(c, buf, n) == -1) sysfatal("write: %r"); if(!req) - return 0; + goto showrefs; if(readphase(c) == -1) sysfatal("read: %r"); if((n = readpkt(c, buf, sizeof(buf))) == -1) |