mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-11-04 14:08:17 +00:00 
			
		
		
		
	Fix checking for the presence of a flag
This commit is contained in:
		
							parent
							
								
									4c977a61e5
								
							
						
					
					
						commit
						2ab9dcbd62
					
				@ -387,7 +387,7 @@ int git_diff_foreach(
 | 
				
			|||||||
			if (error < 0)
 | 
								if (error < 0)
 | 
				
			||||||
				goto cleanup;
 | 
									goto cleanup;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if ((delta->new_file.flags | GIT_DIFF_FILE_VALID_OID) == 0) {
 | 
								if ((delta->new_file.flags & GIT_DIFF_FILE_VALID_OID) == 0) {
 | 
				
			||||||
				error = git_odb_hash(
 | 
									error = git_odb_hash(
 | 
				
			||||||
					&delta->new_file.oid, new_data.data, new_data.len, GIT_OBJ_BLOB);
 | 
										&delta->new_file.oid, new_data.data, new_data.len, GIT_OBJ_BLOB);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user