Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git error:get_string called on a live config object when trying to commit #228

Closed
c02y opened this issue Aug 9, 2020 · 12 comments
Closed
Labels
bug Something isn't working nostale immune to stale-bot

Comments

@c02y
Copy link

c02y commented Aug 9, 2020

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. open gitui inside a git repo
  2. stage a modified file
  3. write a commit message
  4. try to commit
  5. commit failed, "git error:get_string called on a live config object"

I tried gitui multiple times, failed to commit, but this commit is done successfully using tig.

Expected behavior
commit the commit message successfully

Screenshots
If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • OS/Distro + Version: [5.7.14-1-MANJARO]
  • GitUI Version [0.9.1]
  • Rust version: [1.45.2]

Additional context
Add any other context about the problem here.

@extrawurst
Copy link
Owner

seems related to #79
can you do me a favour and share the config for this repo for the user.name and user.email ?

@extrawurst extrawurst added the bug Something isn't working label Aug 9, 2020
@c02y
Copy link
Author

c02y commented Aug 9, 2020

user.name == empty
user.email == "myemail@email.com"

But it is not saying something like config value 'user.name' was not found;

@extrawurst extrawurst added this to the v0.10 milestone Aug 9, 2020
@extrawurst
Copy link
Owner

it is exactly the opposite of #79
image

so it fails if u have a name but no email defined.

[user]
         name = Stephan Dilly

@c02y
Copy link
Author

c02y commented Aug 9, 2020

Yes, I get it now, but I used tig to commit it successfully, which is weird, since user.name can be undefined in the commit step.

I think we can treat this issue an bug of gitui

@cruessler
Copy link
Contributor

If this is not taken yet, I’d have a look.

@extrawurst
Copy link
Owner

@cruessler sure! 👍

@extrawurst
Copy link
Owner

@cruessler any progress on this? I am thinking about cutting a release to get the vim key bindings out the door

@extrawurst extrawurst removed this from the v0.10 milestone Aug 28, 2020
@cruessler
Copy link
Contributor

@extrawurst Sorry for the delay. I’ll now start working on it.

@cruessler
Copy link
Contributor

@c02y Running git commit with user.email not set fails on my machine both using git and tig with the exact same error message: *** Please tell me who you are. If I am not overlooking anything, gitui could improve on its error message, but does not do anything unusual.

❯ git --version
git version 2.25.1

testrepo on master [+]
❯ tig -v
tig version 2.4.1
ncursesw version 6.2.20200212
readline version 8.0

@stale
Copy link

stale bot commented Nov 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 30, 2020
@stale stale bot closed this as completed Dec 7, 2020
@dgrine
Copy link

dgrine commented Jan 13, 2021

+1

@extrawurst
Copy link
Owner

#269 actually fixes this, but having reliable tests for this is a pickle, but hey lets just bite that bullet

@extrawurst extrawurst reopened this Jan 13, 2021
@stale stale bot removed the wontfix This will not be worked on label Jan 13, 2021
@extrawurst extrawurst added the nostale immune to stale-bot label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nostale immune to stale-bot
Projects
None yet
Development

No branches or pull requests

4 participants