mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	| @@ -36,7 +36,8 @@ func parsePrettyFormatLog(repo *Repository, logByts []byte) (*list.List, error) | |||||||
|  |  | ||||||
| func RefEndName(refStr string) string { | func RefEndName(refStr string) string { | ||||||
| 	if strings.HasPrefix(refStr, "refs/heads/") { | 	if strings.HasPrefix(refStr, "refs/heads/") { | ||||||
| 		return strings.TrimPrefix(refStr, "refs/heads/") | 		// trim the "refs/heads/" | ||||||
|  | 		return return refStr[11:] | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	index := strings.LastIndex(refStr, "/") | 	index := strings.LastIndex(refStr, "/") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Arthur Ouyang
					Arthur Ouyang