revert(3p/git): Revert merge of git upstream at v2.26.2
This causes cgit to serve error pages, which is undesirable. This reverts commit5229c9b232, reversing changes made tof2b211131f.
This commit is contained in:
		
							parent
							
								
									6f8fbf4aa4
								
							
						
					
					
						commit
						93ba78d6f4
					
				
					 1006 changed files with 60537 additions and 148724 deletions
				
			
		
							
								
								
									
										7
									
								
								third_party/git/refs/files-backend.c
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								third_party/git/refs/files-backend.c
									
										
									
									
										vendored
									
									
								
							|  | @ -465,7 +465,8 @@ stat_ref: | |||
| 	close(fd); | ||||
| 	strbuf_rtrim(&sb_contents); | ||||
| 	buf = sb_contents.buf; | ||||
| 	if (skip_prefix(buf, "ref:", &buf)) { | ||||
| 	if (starts_with(buf, "ref:")) { | ||||
| 		buf += 4; | ||||
| 		while (isspace(*buf)) | ||||
| 			buf++; | ||||
| 
 | ||||
|  | @ -1326,7 +1327,7 @@ static int files_copy_or_rename_ref(struct ref_store *ref_store, | |||
| { | ||||
| 	struct files_ref_store *refs = | ||||
| 		files_downcast(ref_store, REF_STORE_WRITE, "rename_ref"); | ||||
| 	struct object_id orig_oid; | ||||
| 	struct object_id oid, orig_oid; | ||||
| 	int flag = 0, logmoved = 0; | ||||
| 	struct ref_lock *lock; | ||||
| 	struct stat loginfo; | ||||
|  | @ -1394,7 +1395,7 @@ static int files_copy_or_rename_ref(struct ref_store *ref_store, | |||
| 	 */ | ||||
| 	if (!copy && !refs_read_ref_full(&refs->base, newrefname, | ||||
| 				RESOLVE_REF_READING | RESOLVE_REF_NO_RECURSE, | ||||
| 				NULL, NULL) && | ||||
| 				&oid, NULL) && | ||||
| 	    refs_delete_ref(&refs->base, NULL, newrefname, | ||||
| 			    NULL, REF_NO_DEREF)) { | ||||
| 		if (errno == EISDIR) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue