ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/tests
Martin von Zweigbergk 197f669976 cli: fix git-colocated working copy on Windows
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.
2022-03-30 22:09:55 -07:00
..
smoke_test.rs tests: add a convenience function for running jj successfully 2022-03-26 21:11:42 -07:00
test_concurrent_operations.rs cli: display how many commits were rebased when merging operations (#111) 2022-03-26 22:31:49 -07:00
test_git_colocated.rs cli: fix git-colocated working copy on Windows 2022-03-30 22:09:55 -07:00
test_git_push.rs tests: add a convenience function for running jj successfully 2022-03-26 21:11:42 -07:00
test_gitignores.rs tests: add a convenience function for running jj successfully 2022-03-26 21:11:42 -07:00
test_global_opts.rs tests: add test for invalid config (#55) 2022-03-27 21:11:55 -07:00
test_init_command.rs tests: add a convenience function for running jj successfully 2022-03-26 21:11:42 -07:00
test_log_command.rs log: add -p/--patch option to show diff along with commit meta data 2022-03-30 16:24:34 -07:00
test_new.rs repo: don't abandon empty commit if it has descendants 2022-03-26 21:11:42 -07:00
test_ui.rs
test_undo.rs repo: when merging in removed head, rebase descendants (#111) 2022-03-26 22:31:49 -07:00
test_untrack_command.rs tests: add a convenience function for running jj successfully 2022-03-26 21:11:42 -07:00