mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-04 18:56:49 +00:00
197f669976
This patch adds a very simple e2e test of having a working copy shared with Git. The test initially failed on Windows. The symptom was that the "master" branch did not get updated when we create a commit using `jj`. That suggested that we didn't correctly detect that the working copy was shared. After a lot of troubleshooting, I think I mostly understand what we going on here (thanks to @arxanas for suggesting https://github.com/mxschmitt/action-tmate). The path we get from `git2::Repository::workdir()` seems to not be canonicalized in the same way as `std::fs::canonicalize()` canonicalizes. Specifically, it does not have the "\\?\" prefix we get from that function. I suppose that's because libgit2 is a C library and canonicalizes the path using some other system call. |
||
---|---|---|
.. | ||
smoke_test.rs | ||
test_concurrent_operations.rs | ||
test_git_colocated.rs | ||
test_git_push.rs | ||
test_gitignores.rs | ||
test_global_opts.rs | ||
test_init_command.rs | ||
test_log_command.rs | ||
test_new.rs | ||
test_ui.rs | ||
test_undo.rs | ||
test_untrack_command.rs |