Skip to content

kvzn/git2-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ask for help with an $100 offer

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!

Issue:

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 that libgit2 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.

Target:

It creates files correctly in multiple threads env, no old files deleting.

Tips:

  1. There is a test_create_file_and_commit test function in main.rs, which try to create files in a git bare repository.
  2. There is a function test_create_file_and_commit in main.rs, it tris to call create_file_then_commit_then_push from a multiple thread environment, it can't get success too.
  3. In my implementation it creates files in bare repository by using index.add_frombuffer and repo.commit of git2-rs

img img1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages