server-info.c: use pack_local like everybody else.
Signed-off-by: Junio C Hamano <junkio@cox.net>maint
							parent
							
								
									dc5f9239f7
								
							
						
					
					
						commit
						f13d7db4af
					
				|  | @ -190,16 +190,14 @@ static void init_pack_info(const char *infofile, int force) | ||||||
| 		/* we ignore things on alternate path since they are | 		/* we ignore things on alternate path since they are | ||||||
| 		 * not available to the pullers in general. | 		 * not available to the pullers in general. | ||||||
| 		 */ | 		 */ | ||||||
| 		if (strncmp(p->pack_name, objdir, objdirlen) || | 		if (!p->pack_local) | ||||||
| 		    strncmp(p->pack_name + objdirlen, "/pack/", 6)) |  | ||||||
| 			continue; | 			continue; | ||||||
| 		i++; | 		i++; | ||||||
| 	} | 	} | ||||||
| 	num_pack = i; | 	num_pack = i; | ||||||
| 	info = xcalloc(num_pack, sizeof(struct pack_info *)); | 	info = xcalloc(num_pack, sizeof(struct pack_info *)); | ||||||
| 	for (i = 0, p = packed_git; p; p = p->next) { | 	for (i = 0, p = packed_git; p; p = p->next) { | ||||||
| 		if (strncmp(p->pack_name, objdir, objdirlen) || | 		if (!p->pack_local) | ||||||
| 		    p->pack_name[objdirlen] != '/') |  | ||||||
| 			continue; | 			continue; | ||||||
| 		info[i] = xcalloc(1, sizeof(struct pack_info)); | 		info[i] = xcalloc(1, sizeof(struct pack_info)); | ||||||
| 		info[i]->p = p; | 		info[i]->p = p; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Junio C Hamano
						Junio C Hamano