ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/src
Grégoire Geis 104f8e154c Fix Git/SSH on Windows
There were two issues on my end:
1. `known_hosts` doesn't seem to be recognized
2. SSH Agent is ignored despite running

A workaround for 1. is to set the HOME environment variable on Windows, so I added a hint to suggest this. Ideally we would add a `certificate_check` callback to the remote callbacks, but the git2 crate doesn't expose whether the certificate check already succeeded, which makes it useless for this purpose (as we'd be prompting users to accept a certificate even though that certificate is already known to be valid).

As for 2., I changed the behavior from "check SSH Agent if some env variables exist" to "check SSH Agent and only fail if some env variables exist". On Windows SSH Agent doesn't use these env variables (but trying to communicate with it will still work), so now Windows properly works with SSH Agent.
2023-05-04 23:57:06 +09:00
..
protos
backend.rs
commit.rs
commit_builder.rs
conflicts.rs
content_hash.rs
dag_walk.rs
default_index_store.rs index: use SmallVec to avoid lots of small allocations for adjacent lookup 2023-04-28 08:36:58 +09:00
default_revset_engine.rs revset: do not scan ancestors more than once to evaluate nested children set 2023-04-28 08:36:58 +09:00
default_revset_graph_iterator.rs
diff.rs cargo: upgrade regex 1.7.3 to 1.8.1 2023-04-24 11:28:12 -07:00
file_util.rs
files.rs
git.rs Fix Git/SSH on Windows 2023-05-04 23:57:06 +09:00
git_backend.rs
gitignore.rs
hex_util.rs
index.rs index: remove entry_by_id() from trait 2023-04-18 18:32:23 -07:00
lib.rs
local_backend.rs
lock.rs
matchers.rs
nightly_shims.rs
op_heads_store.rs
op_store.rs
operation.rs
refs.rs
repo.rs revset: add "resolve" method to RevsetExpression, always call it 2023-04-10 00:39:58 +09:00
repo_path.rs
revset.pest
revset.rs revset: delete obsolete comment about ambiguous change/commit ids 2023-05-03 16:23:14 -07:00
rewrite.rs revset: add "resolve" method to RevsetExpression, always call it 2023-04-10 00:39:58 +09:00
settings.rs settings: add helper to turn ConfigError::NotFound into Option 2023-04-14 20:30:42 +09:00
simple_op_heads_store.rs
simple_op_store.rs proto_op_store: Add two minor comments 2023-04-16 22:04:27 -07:00
stacked_table.rs
store.rs
transaction.rs
tree.rs tree: if matcher says that tree should be skipped, skip it 2023-05-03 18:21:51 -07:00
tree_builder.rs
view.rs
working_copy.rs
workspace.rs