Description
if your working copy has a symlink loop, most jj commands stop working, only printing out an error.
Steps to Reproduce the Problem
jj git init loop
cd loop/
jj ci -m "hello"
ln -s uhoh uhoh
jj new @-
Expected Behavior
for the circular symlink to exist in my working copy.
note @martinvonz mentioned in discord:
please file a bug report. we should probably make that a warning instead, but maybe there's something i'm missing
Actual Behavior
an error is raised:
Internal error: Failed to check out commit a0d83e0d1d4f871cce39de77e4b33eed322b925f
Caused by:
1: Failed to validate path /private/tmp/loop/uhoh
2: Too many levels of symbolic links (os error 62)
Specifications
- Platform: darwin
- Version: jj 0.36.0