mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 22:10:31 +08:00
When using Jujutsu and a non-colocated Git repository, the detection using `git2` directly fails (just as `git` in a shell would fail) because there is no `.git` directory found by traversing up the filesystem hierarchy. Add an invocation of `jj git root` as a fallback.
19 lines
491 B
Markdown
19 lines
491 B
Markdown
We initialize Jujutusu for our repository for use with a bare Git repo.
|
|
|
|
```(stderr)
|
|
$ jj git init --git-repo heartwood heartwood.jj
|
|
Done importing changes from the underlying Git repo.
|
|
Working copy (@) now at: lvxkkpmk 9ec513df (empty) (no description set)
|
|
Parent commit (@-) : xpnzuzwn f2de534b master | Second commit
|
|
Added 1 files, modified 0 files, removed 0 files
|
|
Initialized repo in "heartwood.jj"
|
|
```
|
|
|
|
```
|
|
$ cd heartwood.jj
|
|
```
|
|
|
|
```
|
|
$ rad .
|
|
rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
|
|
``` |