Latest pijul and linux2x. Run ./unrec-dir.sh, two issues - it failed and returned zero error code. Please check everywhere you return non-zero on any errors, this is important for future runs over test suite, set -e already everywhere.
./unrec-dir.sh
set -e
$ ./unrec-dir.sh + source ./functions.sh + cd .. + rm -rf repo + pijul init repo + cd repo + mkdir -p 1/2/3/4 + echo mikeiscool + pijul add -r -- 1 + pijul rec -am. + pijul mv 1 2 + pijul rec -am. ++ pijul log --hash-only ++ head -1 + H=J527RH4RUCQ7ZF5EUP5MSFHR3LLZGGZS7EF5GREC4QKUCHLVWTUQC + pijul unrec --reset J527RH4RUCQ7ZF5EUP5MSFHR3LLZGGZS7EF5GREC4QKUCHLVWTUQC [2021-03-26T08:25:06Z ERROR libpijul::working_copy::filesystem] while renaming "/home/mpech/repo/8MWUlfJq4AxP9bMxbYwydb7eDvfmi0" to "/home/mpech/repo/1": Os { code: 39, kind: Other, message: "Directory not empty" } + echo OK--unrec-dir OK--unrec-dir $ echo $? 0 $
YCEZL7VFBZNOZTSSI24D36ACJVZKXCCEOIFWIHQWK22QPB4PDTRAC
Just fixed both of them, thanks!
Enabled.
Latest pijul and linux2x. Run
./unrec-dir.sh
, two issues - it failed and returned zero error code. Please check everywhere you return non-zero on any errors, this is important for future runs over test suite,set -e
already everywhere.