The sound distributed version control system

#278 pijul git - Error: Transaction error: CRC check failed

Closed on August 4, 2021
ganwell on January 21, 2021

pijul gets CRC check failed with almost any git repo:

git clone https://github.com/ganwell/manabi.git
cd manabi
pijul init
pijul git

Error: Transaction error: CRC check failed

https://git.io/JtYdi

$> cargo --version
cargo 1.49.0 (d00d64df9 2020-12-05)
$> uname -a
Linux jim 5.4.89-1-MANJARO #1 SMP PREEMPT Tue Jan 12 23:39:44 UTC 2021 x86_64 GNU/Linux

BTW the search on discussions doesn’t yield any results

ganwell on January 22, 2021

I updated, but the problem still exists. cargo pijul v1.0.0-alpha.37 (executable pijul)

ganwell on February 5, 2021

I created a script that imports from git which can be used as long as pijul git is broken:

https://git.io/Jt2gY

$ topijul
Import from the oldest commit to origin/master

$ topijul origin/main
Import form the old commit to origin/main

$ topijul origin/main $hash
Import from $hash to origin/main

There are two workarounds in this script:

  1. pijul can only detect changes if the timestamp of the file changes

  2. pijul crashes sometimes, the script tries to recover

ganwell on February 5, 2021

If I use my script and I create a work per revision from git I get:

Error: Transaction error: CRC check failed

ganwell on February 6, 2021

Currently the file-list of pijul and git is not always the same. I write an update, when I found that problem.

ganwell on February 6, 2021

I fixed the problem. Now topijul only reads the first parent, like rebase also does.

pmeunier on August 4, 2021

Alright, I believe this is completely fixed. Sanakirja has made giant leaps since this discussion. Thanks for the report anyway!

pmeunier closed this discussion on August 4, 2021