git fetch-pack: do not complain about "no common commits" in an empty repo
If the repo is empty, it is obvious that there are no common commits when fetching from _anywhere_. So there is no use in saying it in that case, and it can even be annoying. Therefore suppress the message unilaterally if the repository is empty prior to the fetch. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		 Johannes Schindelin
					Johannes Schindelin
				
			
				
					committed by
					
						 Junio C Hamano
						Junio C Hamano
					
				
			
			
				
	
			
			
			 Junio C Hamano
						Junio C Hamano
					
				
			
						parent
						
							dc49308450
						
					
				
				
					commit
					8cb560fc47
				
			| @ -309,7 +309,8 @@ done: | |||||||
| 		} | 		} | ||||||
| 		flushes--; | 		flushes--; | ||||||
| 	} | 	} | ||||||
| 	return retval; | 	/* it is no error to fetch into a completely empty repo */ | ||||||
|  | 	return count ? retval : 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| static struct commit_list *complete; | static struct commit_list *complete; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user