Giter Site home page Giter Site logo

Comments (11)

extrawurst avatar extrawurst commented on April 30, 2024 1

so instead of panicking it should show an expressive error now:
Screenshot 2020-05-20 at 11 24 11

will roll out in next release

from gitui.

alistaircarscadden avatar alistaircarscadden commented on April 30, 2024

After some testing I discovered that the bug does not occur after I run git config user.name myname. So, without a username it crashes, and with a username it works just fine. With or without an email it works, as long as it has a name.

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

Good point! Currently it is expected to have the name set. Let me look into it

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

should be fixed in 0.3.0: https://github.com/extrawurst/gitui/releases/tag/v0.3.0

from gitui.

alistaircarscadden avatar alistaircarscadden commented on April 30, 2024

I did a bit more looking around, and discovered I was wrong in my most recent comment. The git behaviour is it allows a commit to be made as long as at least a user.name or user.email is provided. The author shows up as unknown <[email protected]> if only an email is provided or name <> if only a name is provided.

When the condition is not met it shows the *** Please tell me who you are. message.

So, as it is right now gitui does not allow me to make a commit when git commit allows me to. Good work, by the way! :)

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

I am not sure I follow. Does the crash persist for you? Is there a different behavior that we need to look into?

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

@alistaircarscadden make sure to reopen the ticket if there is still the issue

from gitui.

alistaircarscadden avatar alistaircarscadden commented on April 30, 2024

The crash is fixed, and I see the menu that you showed in your screenshot. I'm considering it may be a bug that gitui does not allow a commit in the same conditions git does allow one.

The conditions are when a user.email is present, and a user.name is not. git commit works, but committing with gitui does not.

e: but I am not familliar with the internals of your program, so to you this may be the correct behaviour. I would imagine it's needing a name for some reason, but if your program is just making a call to git commit, it should work.

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

@alistaircarscadden what error does it show when trying to commit in those conditions?

from gitui.

extrawurst avatar extrawurst commented on April 30, 2024

@alistaircarscadden gitui does not use the git cli and you are right, what works in regular git, should be possible in gitui. Please file a new ticket for this and please add the error message that gitui currently returns in that case.

from gitui.

alistaircarscadden avatar alistaircarscadden commented on April 30, 2024

Ok! It's more complicated than I thought, I'll make an issue.

from gitui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.