Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 48ba738

Browse files
Explicitly updating locks after request
1 parent 88a0670 commit 48ba738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ public ITask CreateBranch(string branch, string baseBranch)
258258
public ITask LockFile(string file)
259259
{
260260
var task = GitClient.Lock(file);
261-
return HookupHandlers(task, true, false);
261+
return HookupHandlers(task, true, false).Then(UpdateLocks);
262262
}
263263

264264
public ITask UnlockFile(string file, bool force)
265265
{
266266
var task = GitClient.Unlock(file, force);
267-
return HookupHandlers(task, true, false);
267+
return HookupHandlers(task, true, false).Then(UpdateLocks);
268268
}
269269

270270
public void UpdateGitLog()

0 commit comments

Comments
 (0)