Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store locks on same server for different repos #111

Open
SalmaFarghaly opened this issue Oct 13, 2022 · 1 comment
Open

Store locks on same server for different repos #111

SalmaFarghaly opened this issue Oct 13, 2022 · 1 comment

Comments

@SalmaFarghaly
Copy link

Hello,

How can I use the same lfs test server to test the locks of different repos?
I want to store the locks of 2 different repos on the same server but have sth to differentiate between locks of the same path in different repos.

Suppose I have repo1 and repo2. and there is some file that has the same path on both repos. let's say it is "NewFolder/f1.txt". If I run git lfs lock "NewFolder/f1.txt" on repo1 Then run the same command on repo2. I don't want the command to fail because of lock already exists.

@bk2204
Copy link
Member

bk2204 commented Oct 13, 2022

Hey,

From what I can see in the code, locks should be stored per-repository. That's definitely the intended behaviour from the client perspective, and I believe it's the behaviour that should be occurring in the test server. Therefore, I don't expect the locks to conflict.

Are you seeing something different, or are you just asking to verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants