torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
91 stars 21 forks source link

fatal: not a git repository (or any of the parent directories): .git #13

Closed Capoouo closed 3 months ago

Capoouo commented 3 months ago

I am using Docker for this project. If I do not include the following command in the Dockerfile:RUN apk add --no-cache git I get the error:/bin/sh: git: not found If I add the command, the error changes to:hoyolab-auto | fatal: not a git repository (or any of the parent directories): .git

edit: I re-cloned the project and added RUN apk add --no-cache git. For now, there haven't been any errors. Also, I want to ask whether the redemption code will automatically redeem the known codes the first time it runs, or will it only redeem new codes thereafter?

torikushiii commented 3 months ago

Also, I want to ask whether the redemption code will automatically redeem the known codes the first time it runs, or will it only redeem new codes thereafter?

The latter, because if I ran code redemption before caching the codes, you would end up redeeming a large number of code redeem.

Capoouo commented 3 months ago

Also, I want to ask whether the redemption code will automatically redeem the known codes the first time it runs, or will it only redeem new codes thereafter?

The latter, because if I ran code redemption before caching the codes, you would end up redeeming a large number of code redeem.

I see. The 'git not found' issue I mentioned to ChatGPT is because my Docker environment doesn't have Git installed, so I need to install it separately

You can try it out, and I will close this issue