File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1278,12 +1278,10 @@ static struct lock_file packlock;
1278
1278
static int repack_without_ref (const char * refname )
1279
1279
{
1280
1280
struct ref_array * packed ;
1281
- struct ref_entry * ref ;
1282
1281
int fd , i ;
1283
1282
1284
1283
packed = get_packed_refs (get_ref_cache (NULL ));
1285
- ref = search_ref_array (packed , refname );
1286
- if (ref == NULL )
1284
+ if (search_ref_array (packed , refname ) == NULL )
1287
1285
return 0 ;
1288
1286
fd = hold_lock_file_for_update (& packlock , git_path ("packed-refs" ), 0 );
1289
1287
if (fd < 0 ) {
@@ -1294,8 +1292,7 @@ static int repack_without_ref(const char *refname)
1294
1292
for (i = 0 ; i < packed -> nr ; i ++ ) {
1295
1293
char line [PATH_MAX + 100 ];
1296
1294
int len ;
1297
-
1298
- ref = packed -> refs [i ];
1295
+ struct ref_entry * ref = packed -> refs [i ];
1299
1296
1300
1297
if (!strcmp (refname , ref -> name ))
1301
1298
continue ;
You can’t perform that action at this time.
0 commit comments