pijul_org / pijul

#410 `pijul init` fails with misleading error when parent directory has .pijul folder

Opened by jimbo1qaz, on June 25, 2019
Open
jimbo1qaz commented on June 25, 2019

If I try to run pijul init in a subdirectory when a parent directory has .pijul, I get error Repository "/path/to/parent/child" already exists. The error claims the child contains a repository, instead of listing the path of the parent.

This can be resolved by:

  • Replacing the printed path with the parent directory containing .pijul
  • Rewording the error to indicate "this folder is inside a parent repo"
  • Doing both.

I may be able to add a patch to change this in master?