File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1383,14 +1383,15 @@ static int refdb_fs_backend__rename(
13831383
13841384static int refdb_fs_backend__compress (git_refdb_backend * _backend )
13851385{
1386+ int error ;
13861387 refdb_fs_backend * backend = (refdb_fs_backend * )_backend ;
13871388
13881389 assert (backend );
13891390
1390- if (packed_reload (backend ) < 0 || /* load the existing packfile */
1391- packed_loadloose (backend ) < 0 || /* add all the loose refs */
1392- packed_write (backend ) < 0 ) /* write back to disk */
1393- return -1 ;
1391+ if (( error = packed_reload (backend ) ) < 0 || /* load the existing packfile */
1392+ ( error = packed_loadloose (backend ) ) < 0 || /* add all the loose refs */
1393+ ( error = packed_write (backend ) ) < 0 ) /* write back to disk */
1394+ return error ;
13941395
13951396 return 0 ;
13961397}
You can’t perform that action at this time.
0 commit comments