Sublime Forum

Bug: Not able to commit from SublimeMerge

#1

When I try to commit changes, it prompts me to enter my user information. When I enter this, it succeeds, but when I try to commit after this, I am prompted again to enter my user information (and it loops).

0 Likes

#2

Pasting full flow here, as I’m a new member, and can only attach one picture to the initial post.

0 Likes

#3

It sounds like we may be reading from different config files than git itself on your machine. There should be more information in the Help/Debug Information menu.

As a workaround, if you set your name in the local repository (i.e., select the 2nd radio box in the Edit User dialog), then there won’t be any confusion, and Sublime Merge should be happy

0 Likes

#4

I ran into this same issue. The problem is related to situations on Windows where %USERPROFILE% does not equal %HOMEDRIVE%%HOMEPATH%. SublimeMerge is reading from the former while the Git command line client uses the latter. I experienced the same endless loop you mention.

I added my info to the local repository to get it working short term, but then it would clear the commit message and complain I didn’t have a commit message. I still haven’t sorted that one out yet.

0 Likes

#5

Does your commit message start with a ‘#’? We strip comments from the commit message input, as sometimes it gets automatically populated. Assuming that’s the issue, we have an in-progress change that’ll make it operate as expected (i.e., don’t strip comments if the commit message box wasn’t auto-populated)

0 Likes

#6

Oh yes it does. It starts with #

I would have figured that out tonight when I started playing with some personal repositories where I don’t follow that pattern.

Mystery solved, glad to know it is on the radar. Would it be stripped out if the #number was somewhere later in the message?

0 Likes

#7

Dev build 1060 should hopefully resolve the issue on Windows in which the Edit User dialog is presented repeatedly. https://www.sublimemerge.com/dev

2 Likes