Re: [PATCH] git.c: Re-introduce sane error messages on missing commands.
From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:42:31
Junio C Hamano wrote:
Andreas Ericsson [off-list ref] writes:quoted
Somewhere in the alias handling git turned hostile on fat fingers: $ git showbranch Failed to run command '': Is a directoryDoes not happen here (nor on Cygwin 1.4.1.rc1). Care to help reproducing it?
Here's the complete procedure I used: $ git pull && make; # works ok $ make strip install; # works ok $ git showbranch Failed to run command '': Is a directory (confusion and puzzlement...) $ git checkout master; git reset --hard master; # works ok $ git pull; # gets nothing (I try stupid things first ;p) $ make clean install; # works ok $ git showbranch Failed to run command '': Is a directory $ git --version git version 1.4.1.rc1.g1ef9 It's reliably reproducible here. Notable though is that I have no .git/config in my git.git clone and no ~/.gitconfig (or ~/.gitrc or whatever), so the handle_alias() function never finds a config file to look for aliases in. Either way, removing the variable "char git_command[MAX_PATH + 1];" from git.c:main() is correct since it's never used for anything but printing the (erroneous) error message above. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231