mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	work on #2093
This commit is contained in:
		@@ -350,7 +350,7 @@ func (repo *Repository) SavePatch(index int64, patch []byte) error {
 | 
				
			|||||||
		return fmt.Errorf("PatchPath: %v", err)
 | 
							return fmt.Errorf("PatchPath: %v", err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	os.MkdirAll(path.Dir(patchPath), os.ModePerm)
 | 
						os.MkdirAll(filepath.Dir(patchPath), os.ModePerm)
 | 
				
			||||||
	if err = ioutil.WriteFile(patchPath, patch, 0644); err != nil {
 | 
						if err = ioutil.WriteFile(patchPath, patch, 0644); err != nil {
 | 
				
			||||||
		return fmt.Errorf("WriteFile: %v", err)
 | 
							return fmt.Errorf("WriteFile: %v", err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user