mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-25 06:10:31 +08:00
If the user passes a <path> argument to init, it is incorrect and a bit confusing to reference the "current directory" or "this directory" e.g. "run rad . in current directory" when the repo was not created in the current directory and was created with a path argument instead. Use the path provided by the user in help text, otherwise reference the current directory.
356 B
356 B
If you try to init from a directory that doesn't contain a Git repository,
it will fail:
$ rad init
✗ Error: a Git repository was not found at the given path
Ok so let's initialize one.
$ git init -q
Now we try again.
$ rad init
✗ Error: repository head must point to a commit
Looks like we need a commit.