Using JGit as a web service with multiple users using same repository [message #1841336] |
Wed, 12 May 2021 15:05 |
Heavens Regent Messages: 7 Registered: May 2021 |
Junior Member |
|
|
I am attempting to use JGit as a web service. I have REST calls that perform different git operations. Each user will have a branch on the base repository. Is this possible through JGit or do I need to do something else.
I have a UI and when a user edits something JGit will save that to their branch. However the way I'm attempting to do it seems like I will have a lot of issues because if 2 users are using it at the same time, it would checkout User 1's branch, then checkout User 2's branch, and save and commit both files to User 2's branch. How would I be able to account for this?
[Updated on: Wed, 12 May 2021 19:53] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07802 seconds