Commits
- Commit:
7abf18632acc87a9e98668077a1af3d132bd2853
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
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@
- Commit:
e0380e3dfa71712eaaf9642b4d86b53e6a986653
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
special case 'got fetch -b <branch>' to only fetch <branch>
As discussed on irc, this drops the implicit remote HEAD fetch when -b is used.
got.1 has been updated to make the new fetch behaviour clear.
ok stsp@
- Commit:
9d0a7ee35139cbfd755c1647d0feeaa665e1a2a2
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix interaction of 'got fetch -b', got.conf, and work tree
Without branches in got.conf for a remote, and without -b/-R options,
the fallback to HEAD would only work when not invoked in a work tree.
With this fix 'got fetch' should behave as described in the man page.
The -b option now overrides both got.conf and the fallback to the work
tree's branch.
And fallback to HEAD works as expected when invoked in a repository.
Also, do not strictly require remote repositories to provide a branch
from the refs/heads/ namespace. In such cases users should be able to
use -R to select something to fetch.
ok jamsek
- Commit:
baf8297852cb080b3eea4bd38672e358b8298b76
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove declaration of got_fetch_parse_uri()
- Commit:
77d7d3bb1aabafae6c020c8a07a6e9f4f7885c9b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
de-duplicate a constant used by both 'got fetch' and 'got send'
Both GOT_FETCH_PKTMAX and GOT_SEND_PKTMAX had the same value.
Declare this value as GOT_PKT_MAX in got_lib_pkt.h instead.
- Commit:
d65a88a2f0db40d2c2ac34ee34e8aff8ac629d52
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move duplicated dial_ssh() and dial_git() functions into a common file
These functions are used by 'got send' and 'got fetch' in order to
open network connections to a server. Move them into new file lib/dial.c
and declare relevant functions in got_dial.h and lib/got_lib_dial.h.
No functional change.
- Commit:
0e4002cadf11b9274c4355850d55bd59bbc20d31
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for fetching arbitrary references to 'got clone' and 'got fetch'
- Commit:
2690194b1af694bf2b56ac50c859ac6439dd6a7a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove GOT_FETCH_DEBUG and toggle fetch debug output with -v option instead
- Commit:
9c52365fc3a72b4e0add781c388032869c081473
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
properly terminate the ssh process after fetching via SSH
- Commit:
41b0de1256a7a8a9ed3d4c0d66809ebfcbf1a58d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for listing remote branches and tags to 'got clone' and 'got fetch'
- Commit:
4ba1413314ad741dd3eec3b6672b127f2e03428e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for fetching specific branches to 'got clone' and 'got fetch'
- Commit:
659e7fbd6952b401014702a1e181642a9bba17df
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fetch only HEAD branch and tags by default; add -a option to fetch everything
- Commit:
469dd7264e07bc434adc24b250cd154db9e18d02
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for repository mirrors to 'got clone' and 'got fetch'
- Commit:
f1c6967f90f720a023714672e6751755b755e2a5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix chopped display of git-server's progress output
- Commit:
7848a0e1655d11a8d85bb505fc6232bd779cddae
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement 'got fetch'
- Commit:
68999b92f2fcbce1a9247328552d8d1bdfc45785
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow controlling verbosity of 'got clone' with -q and -v options
- Commit:
7ebc057006aaed02492a35a9215698a37b755911
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not forget to create references under remotes/origin during 'got clone'
- Commit:
ee448f5f104f873da32b5aa9139702b0377ebf3f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
apply unveil(2) to 'got clone'
- Commit:
668a20f6fe41d7f9c2f4c32b1ee521bff6d459a8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rewritten got-index-pack; sorry about the monster commit
- Commit:
baa9fea074326a73792e66efbca9746a1bccc596
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
send indexing progress via an imsg
- Commit:
d2cdc63664daa5fa39c9a6398c33f3724650bfe9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
send pack file download progress information over imsg
- Commit:
531c39852ff6a7454ce0e618bacb7b7e20f93523
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for git protocol sidebands and display server progress
- Commit:
a78567c6d69c75338f7883da063f8206011b9bf6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document fetch API functions
- Commit:
ceee4c0f4a8b5ade21103c1c40c3de86b328156f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused arguments from got_fetch_pack()
- Commit:
07e52fce8675e8151ec7c58917fb3a6017279634
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got_fetch() to got_fetch_pack()