ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Martin von Zweigbergk 416a36a59c git: don't abandon root commit when all refs are gone
If you remove all refs from the backing Git repo and then run `jj git
import`, we would see that all commits disappeared from the Git repo,
so we would remove them from the jj repo too. However, we do that by
doing a history walk from old heads to the new heads, which includes
the root commit when the new heads is an empty set. That means that we
mark the root commit as abandoned, which led to a crash in
`rewrite.rs` (when we try pick the root commit's first parent to use
as parent for rebased commits).
2022-10-29 03:02:26 -07:00
..
src git: don't abandon root commit when all refs are gone 2022-10-29 03:02:26 -07:00
tests git: don't abandon root commit when all refs are gone 2022-10-29 03:02:26 -07:00
build.rs cleanup: remove extern crate declarations 2022-09-21 22:24:09 -07:00
Cargo.toml tests: extract setup of libgit2 config to lib crate 2022-10-23 11:08:22 -07:00