mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Fix Pulls Create (#202)
small refactor fix TrimLeft bug, improve logging Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/202 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -229,5 +229,5 @@ func (r TeaRepo) TeaGetCurrentBranchName() (string, error) { | ||||
| 		return "", fmt.Errorf("active ref is no branch") | ||||
| 	} | ||||
|  | ||||
| 	return strings.TrimLeft(localHead.Name().String(), "refs/heads/"), nil | ||||
| 	return strings.TrimPrefix(localHead.Name().String(), "refs/heads/"), nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Norwin
					Norwin