Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit592ec84

Browse files
committed
Fix rollback bug in SymbolicReference.set_reference
This fixes the initialization of the "ok" flag by setting it toFalse before the operation that might fail is attempted.(This is a fix for the *specific* problem reported in#1669 abouthow the pattern SymbolicReference.set_reference attempts to usewith LockedFD is not correctly implemented.)
1 parenta5a6464 commit592ec84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def set_reference(
370370

371371
lfd=LockedFD(fpath)
372372
fd=lfd.open(write=True,stream=True)
373-
ok=True
373+
ok=False
374374
try:
375375
fd.write(write_value.encode("utf-8")+b"\n")
376376
lfd.commit()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp