gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Checkpointing option does not recognize my local git repo

Open dulfox opened this issue 1 year ago • 4 comments

What happened?

When I try to run Gemini with -c option it fails. It does not recognize the local git directory as a repo

What did you expect to happen?

Take into consideration my repo and use git functionality.

Client information

$ gemini /about
About Gemini CLI                                   │
│                                                    │
│ CLI Version      0.1.13                            │
│ Git Commit       412b78c5 (local modifications)    │
│ Model            gemini-2.5-pro                    │
│ Sandbox          no sandbox                        │
│ OS               linux                             │
│ Auth Method      gemini-api-key     

Login information

API key is used to loggin in

Anything else we need to know?

I run it on an aarch64 platform

dulfox avatar Jul 22 '25 09:07 dulfox

I think I get the error: my environment is not set to LANG=C! I'm on a french environment and when I switched to LANG=C now it works. I guess you are parsing git rev-parse --git-dir (as I can see on the debug) and other commands and didn't get the expected outcome due to the idiom.

My advices would be: Set up the expected settings internally when launching the binary Export settings when running /about

dulfox avatar Jul 23 '25 03:07 dulfox

@dulfox, hey there. I wasn't able to reproduce this issue. I submitted a draft pull request that maybe you can try on your end to see if it works: https://github.com/google-gemini/gemini-cli/pull/6698.

hugomurillomtz avatar Aug 22 '25 21:08 hugomurillomtz

@dulfox, please also confirm that you are able to reproduce the issue and please provide more details of your environment, since we were unable to reproduce on our end

shrutip90 avatar Aug 22 '25 21:08 shrutip90

Because I am not able to repro this at HEAD using a non-C LANG version, i.e. de_DE.UTF-8, I'm going to close the issue.

@dulfox , if this issue is still impacting you, could you file a new issue with detailed repro instructions, and we'll be happy to take another look? Thanks!

joshualitt avatar Sep 16 '25 16:09 joshualitt