mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	| @@ -7,6 +7,7 @@ package git | ||||
| import ( | ||||
| 	"bytes" | ||||
| 	"container/list" | ||||
| 	"fmt" | ||||
| 	"os" | ||||
| 	"path/filepath" | ||||
| 	"strings" | ||||
| @@ -67,3 +68,10 @@ func isFile(filePath string) bool { | ||||
| 	} | ||||
| 	return !f.IsDir() | ||||
| } | ||||
|  | ||||
| func concatenateError(err error, stderr string) error { | ||||
| 	if len(stderr) == 0 { | ||||
| 		return err | ||||
| 	} | ||||
| 	return fmt.Errorf("%v: %s", err, stderr) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user