Fix rollback bug in SymbolicReference.set_reference · gitpython-developers/GitPython@592ec84 · GitHub
Skip to content

Commit 592ec84

Browse files
committed
Fix rollback bug in SymbolicReference.set_reference
This fixes the initialization of the "ok" flag by setting it to False before the operation that might fail is attempted. (This is a fix for the *specific* problem reported in #1669 about how the pattern SymbolicReference.set_reference attempts to use with LockedFD is not correctly implemented.)
1 parent a5a6464 commit 592ec84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)