It looks like the invocation of git commit does not regard the errorlevel/return value of git.
How I found it out (only ONE way to reproduce it):
I configured and used git for my local account firstname.lastname@example.org well, works since months on cmd.exe.
Then I noticed, CodeLite has a built in git.
So I changed a .cpp file of my project and selected "Commit local changes" (the green down arrow below the git tab).
I was asked for comment, typed it in, ... and the file still was marked as "Modified"
Then I found the detailed log:
Code: Select all
Commit local changes (-m "added easy wrapper myEXCEPTION" ExceptionSafety/ExceptionSafety1.cpp ) git --no-pager commit -m "added easy wrapper myEXCEPTION" ExceptionSafety/ExceptionSafety1.cpp . Repo path: D:\proj.privat\GitSvn.Hosted warning: CRLF will be replaced by LF in ExceptionSafety/ExceptionSafety1.cpp. The file will have its original line endings in your working directory. *** Please tell me who you are. Run git config --global user.email "email@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'Admin@mycomputer.(none)') Get current branch git --no-pager branch --no-color. Repo path: D:\proj.privat\GitSvn.Hosted * master Current branch master Listing modified files in git repository git --no-pager ls-files -m. Repo path: D:\proj.privat\GitSvn.Hosted ...
To be clear, this was a local configuration mistake on my side, yes. BUT it shows, that CodeLite does not regard the negative return from git.
Am I right? Can this be fixed?
It is not very critical in my eyes.
Uhm, but it might also happen on other git commit situations, where a user relies on the right return value evaluation of a git call - like broken remote connection, disk full and so on.
May also be, this return evaluation does not only affect git, but also svn?
May be it is only a Win32/Win64 platform porting issue?
Would like to hear some comments from the community on this,