mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 17:25:27 +01:00 
			
		
		
		
	Fix lint
This commit is contained in:
		| @@ -56,7 +56,7 @@ func InitCommand(cmd *cli.Command) *context.TeaContext { | ||||
|  | ||||
| 	// try to read local git repo & extract context: if repoFlag specifies a valid path, read repo in that dir, | ||||
| 	// otherwise attempt PWD. if no repo is found, continue with default login | ||||
| 	if c.LocalRepo, c.Login, c.RepoSlug, err = context.ContextFromLocalRepo(repoPath, remoteFlag); err != nil { | ||||
| 	if c.LocalRepo, c.Login, c.RepoSlug, err = context.FromLocalRepo(repoPath, remoteFlag); err != nil { | ||||
| 		if err == context.ErrNotAGiteaRepo || err == gogit.ErrRepositoryNotExists { | ||||
| 			// we can deal with that, commands needing the optional values use ctx.Ensure() | ||||
| 		} else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao