{"thread":{"id":"44662","subject":"Bug: git-sh-setup giving no such file or directory","startedAt":"2016-12-09T12:00:43Z","lastAt":"2016-12-09T14:00:52Z","messageCount":3,"participants":["Paul Boyle","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"307343","messageId":"CABZ0BffSi6h8Zhg8vjo1dZhxXg3fUt_U6TAtqMvpDShOX6HyyA@mail.gmail.com","threadId":"44662","inReplyTo":null,"subject":"Bug: git-sh-setup giving no such file or directory","fromName":"Paul Boyle","fromEmail":"paulcboyle@gmail.com","sentAt":"2016-12-09T12:00:36Z","receivedAt":"2016-12-09T12:00:43Z","isPatch":false,"sender":{"key":"paulcboyle@gmail.com","avatar":null},"body":"Hi\n\nThere appears to be an issue with the latest master.\n\n\"git submodule init\" is producing the following error:\n\n/home/paul.boyle/bin/git/git-sh-setup: line 46:\n/home/paul.boyle/libexec/git-core/git-sh-i18n: No such file or\ndirectory\n\nBroken sha: 8d7a455ed52e2a96debc080dfc011b6bb00db5d2\n\nChecking out an older version works fine.\n\ngit checkout 'master@{2016-11-01 18:30:00}'\n\nSha: 3cdd5d19178a54d2e51b5098d43b57571241d0ab\n\nThis can be reproduced simply by:\n\nmake clean ; make ; git submodule init\n\n\nI didn't track it down further than to a commit sometime in the last month.\n\nDetails of machine that this is happening on:\n\n[paul.boyle@gonzo git]$ cat /etc/redhat-release\n\nScientific Linux release 6.8 (Carbon)\n\n\n[paul.boyle@gonzo git]$ env\n\nSSH_AGENT_PID=29474\n\nHOSTNAME=gonzo\n\nTERM=xterm\n\nSHELL=/bin/bash\n\nHISTSIZE=1000\n\nSSH_CLIENT=\n\nQTDIR=/usr/lib64/qt-3.3\n\nQTINC=/usr/lib64/qt-3.3/include\n\nSSH_TTY=/dev/pts/135\n\nUSER=paul.boyle\n\nLS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:\n\nSSH_AUTH_SOCK=/tmp/ssh-oXONs29470/agent.29470\n\nMAIL=/var/spool/mail/paul.boyle\n\nPATH=/home/paul.boyle/bin/git:/home/paul.boyle/bin/tig:/home/paul.boyle/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/paul.boyle/bin\n\nPWD=/home/paul.boyle/bin/git\n\nLANG=en_IE.UTF-8\n\nHISTCONTROL=ignoredups\n\nSHLVL=1\n\nHOME=/home/paul.boyle\n\nLOGNAME=paul.boyle\n\nQTLIB=/usr/lib64/qt-3.3/lib\n\nCVS_RSH=ssh\n\nSSH_CONNECTION=\n\nLESSOPEN=||/usr/bin/lesspipe.sh %s\n\nG_BROKEN_FILENAMES=1\n\nOLDPWD=/home/paul.boyle/\n\n_=/bin/env\n"},{"id":"307352","messageId":"20161209134544.z2xbly5xjyito62w@sigill.intra.peff.net","threadId":"44662","inReplyTo":"CABZ0BffSi6h8Zhg8vjo1dZhxXg3fUt_U6TAtqMvpDShOX6HyyA@mail.gmail.com","subject":"Re: Bug: git-sh-setup giving no such file or directory","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-12-09T13:45:44Z","receivedAt":"2016-12-09T13:45:52Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Dec 09, 2016 at 12:00:36PM +0000, Paul Boyle wrote:\n\n> There appears to be an issue with the latest master.\n> \n> \"git submodule init\" is producing the following error:\n> \n> /home/paul.boyle/bin/git/git-sh-setup: line 46:\n> /home/paul.boyle/libexec/git-core/git-sh-i18n: No such file or\n> directory\n\nHmm. Did you run \"make install\"? Or are you trying to run git directly\nout of the build directory?\n\nIf the latter, that has been unsupported for a while, though it mostly\nworks. The \"right\" way is to either set up GIT_EXEC_PATH as appropriate,\nor to just .../git/bin-wrappers into your $PATH.\n\n> Broken sha: 8d7a455ed52e2a96debc080dfc011b6bb00db5d2\n> \n> Checking out an older version works fine.\n> \n> git checkout 'master@{2016-11-01 18:30:00}'\n> \n> Sha: 3cdd5d19178a54d2e51b5098d43b57571241d0ab\n> \n> This can be reproduced simply by:\n> \n> make clean ; make ; git submodule init\n> \n> \n> I didn't track it down further than to a commit sometime in the last month.\n\nYou could probably find the exact commit with git-bisect. However, I'd\nbe surprised if it is anything but 1073094f3 (git-sh-setup: be explicit\nwhere to dot-source git-sh-i18n from., 2016-10-29). Before that commit,\nwe found git-sh-i18n in the $PATH, which would work if you were adding\ngit's build directory to your $PATH (but not work for people who\nactually did an install).\n\n-Peff\n"},{"id":"307353","messageId":"CABZ0BffXMOn8eLFwg_o7WsXeRJjB_xd0kNeV1qGiVFPSYbxg+A@mail.gmail.com","threadId":"44662","inReplyTo":"20161209134544.z2xbly5xjyito62w@sigill.intra.peff.net","subject":"Re: Bug: git-sh-setup giving no such file or directory","fromName":"Paul Boyle","fromEmail":"paulcboyle@gmail.com","sentAt":"2016-12-09T14:00:44Z","receivedAt":"2016-12-09T14:00:52Z","isPatch":false,"sender":{"key":"paulcboyle@gmail.com","avatar":null},"body":"> Hmm. Did you run \"make install\"? Or are you trying to run git directly\n> out of the build directory?\n>\n> If the latter, that has been unsupported for a while, though it mostly\n> works. The \"right\" way is to either set up GIT_EXEC_PATH as appropriate,\n> or to just .../git/bin-wrappers into your $PATH.\n\nThis was the source of it. Root cause, a stupid user ;) I'd a PATH\nsetup to the build directory. Changing the path to bin-wrappers fixed\nit up.\n\nThanks!\n\nOn Fri, Dec 9, 2016 at 1:45 PM, Jeff King <peff@peff.net> wrote:\n> On Fri, Dec 09, 2016 at 12:00:36PM +0000, Paul Boyle wrote:\n>\n>> There appears to be an issue with the latest master.\n>>\n>> \"git submodule init\" is producing the following error:\n>>\n>> /home/paul.boyle/bin/git/git-sh-setup: line 46:\n>> /home/paul.boyle/libexec/git-core/git-sh-i18n: No such file or\n>> directory\n>\n> Hmm. Did you run \"make install\"? Or are you trying to run git directly\n> out of the build directory?\n>\n> If the latter, that has been unsupported for a while, though it mostly\n> works. The \"right\" way is to either set up GIT_EXEC_PATH as appropriate,\n> or to just .../git/bin-wrappers into your $PATH.\n>\n>> Broken sha: 8d7a455ed52e2a96debc080dfc011b6bb00db5d2\n>>\n>> Checking out an older version works fine.\n>>\n>> git checkout 'master@{2016-11-01 18:30:00}'\n>>\n>> Sha: 3cdd5d19178a54d2e51b5098d43b57571241d0ab\n>>\n>> This can be reproduced simply by:\n>>\n>> make clean ; make ; git submodule init\n>>\n>>\n>> I didn't track it down further than to a commit sometime in the last month.\n>\n> You could probably find the exact commit with git-bisect. However, I'd\n> be surprised if it is anything but 1073094f3 (git-sh-setup: be explicit\n> where to dot-source git-sh-i18n from., 2016-10-29). Before that commit,\n> we found git-sh-i18n in the $PATH, which would work if you were adding\n> git's build directory to your $PATH (but not work for people who\n> actually did an install).\n>\n> -Peff\n"}]}