I'm seeking for help for that issue with $100 offer, not very much, but hope anyone could help! Pls send me message if you can help, I will pay for that. Very appreciate it!
using
git2-rs
in multiple threads env makes old files in git repository deleted, even I use a lock to prevent accessing a repo at the same time, the reason might be thatlibgit2
doesn't work well in multiple thread environment. But even the files creating do not happen at the same time, it always make the old files deleted, then only one file left at the end.
It creates files correctly in multiple threads env, no old files deleting.
- There is a
test_create_file_and_commit
test function inmain.rs
, which try to create files in a gitbare
repository. - There is a function
test_create_file_and_commit
inmain.rs
, it tris to callcreate_file_then_commit_then_push
from a multiple thread environment, it can't get success too. - In my implementation it creates files in
bare
repository by usingindex.add_frombuffer
andrepo.commit
ofgit2-rs