Commit 350292a
sequencer: do not roll back lockfile unnecessarily
If `commit_lock_file()` or `hold_lock_file_for_update()` fail, there is
no need to call `rollback_lock_file()` on the lockfile. It doesn't hurt
either, but it does make different callers in this file inconsistent,
which might be confusing.
While at it, remove a trailing '.' from a recurring error message.
Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 5790d25 commit 350292a
1 file changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 355 | + | |
| 356 | + | |
359 | 357 | | |
360 | 358 | | |
361 | 359 | | |
| |||
2107 | 2105 | | |
2108 | 2106 | | |
2109 | 2107 | | |
2110 | | - | |
2111 | | - | |
| 2108 | + | |
2112 | 2109 | | |
2113 | | - | |
2114 | 2110 | | |
2115 | 2111 | | |
2116 | 2112 | | |
| |||
2119 | 2115 | | |
2120 | 2116 | | |
2121 | 2117 | | |
2122 | | - | |
2123 | | - | |
2124 | | - | |
2125 | | - | |
| 2118 | + | |
| 2119 | + | |
2126 | 2120 | | |
2127 | 2121 | | |
2128 | 2122 | | |
| |||
2246 | 2240 | | |
2247 | 2241 | | |
2248 | 2242 | | |
2249 | | - | |
| 2243 | + | |
2250 | 2244 | | |
2251 | 2245 | | |
2252 | 2246 | | |
| |||
0 commit comments