Tree
- Tree:
ac4d8d8614db57396fbc8e7fe12656320d59c5f8
- Date:
- Message:
- got: further fetch tweaks to prevent unintended fetches Implement stsp's suggestion to only fetch remote's HEAD if the symref refs/remote/*/HEAD exists, and its target no longer matches the remote HEAD. This ensures users tracking a project won't miss a change in HEAD, while also fixing the issue reported by naddy where HEAD was fetched by default even though a specific, potentially less active, branch is cloned, resulting in a repository with more commits than necessary. In addition, unless 'got fetch -b <branch>' is used, the remote HEAD branch will be fetched if branches are not set in got.conf and there is no work tree to ascertain a branch, or said branches are not found on the server. ok stsp@
Makefile | commits | blame |
got-read-gotconfig.c | commits | blame |
gotconfig.h | commits | blame |
parse.y | commits | blame |