{"thread":{"id":"24423","subject":"Challenge with Git-Bash","startedAt":"2010-07-17T16:20:04Z","lastAt":"2010-07-19T18:09:31Z","messageCount":9,"participants":["Rainer Lauer","Ævar Arnfjörð Bjarmason","Jonathan Nieder","Eric Raible"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"145730","messageId":"001d01cb25cb$eb176980$c1463c80$@net","threadId":"24423","inReplyTo":null,"subject":"Challenge with Git-Bash","fromName":"Rainer Lauer","fromEmail":"lauerr@gmx.net","sentAt":"2010-07-17T16:20:04Z","receivedAt":"2010-07-17T16:20:04Z","isPatch":false,"sender":{"key":"lauerr@gmx.net","avatar":null},"body":"Hello,\nwith my Windows 7 Git-Installation I get following challenge:\n1)\tSet GIT_EDITOR to editor of your choice\n2)\tWith Windows7 let this editor run in admin-mode\n\tGoto .exe-file -> right mouse-click -> compatibility -> run program\nas admin (I'm running a German version maybe English names are slightly\ndifferent)\n3)\tMake a git action like git add file\n                             git commit\n\tfrom the git bash.\n4)\tNow following message appears:  sh.exe: ./\"editor of your choice\":\nBad file number\nEverything is fine without Admin-Mode set for editor. In other words if you\nget rid of step 2) step 4) doesn't appear instead the editor starts.\nDue to other tasks my editor of choice has to run in this mode - stupid\nenough.\n\nAny chance to get around this problem?\n(No not taking a different editor, no not getting rid of admin mode :) )\n\nReggies,\nRainer Lauer\n"},{"id":"145733","messageId":"AANLkTinKt2Mbsw4SbTCjbTOuzOpzYEBjQsGGh2Fq67Bo@mail.gmail.com","threadId":"24423","inReplyTo":"001d01cb25cb$eb176980$c1463c80$@net","subject":"Re: Challenge with Git-Bash","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-07-17T16:36:30Z","receivedAt":"2010-07-17T16:36:30Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Sat, Jul 17, 2010 at 16:20, Rainer Lauer <lauerr@gmx.net> wrote:\n> Hello,\n> with my Windows 7 Git-Installation I get following challenge:\n> 1)      Set GIT_EDITOR to editor of your choice\n> 2)      With Windows7 let this editor run in admin-mode\n>        Goto .exe-file -> right mouse-click -> compatibility -> run program\n> as admin (I'm running a German version maybe English names are slightly\n> different)\n> 3)      Make a git action like git add file\n>                             git commit\n>        from the git bash.\n> 4)      Now following message appears:  sh.exe: ./\"editor of your choice\":\n> Bad file number\n> Everything is fine without Admin-Mode set for editor. In other words if you\n> get rid of step 2) step 4) doesn't appear instead the editor starts.\n> Due to other tasks my editor of choice has to run in this mode - stupid\n> enough.\n>\n> Any chance to get around this problem?\n> (No not taking a different editor, no not getting rid of admin mode :) )\n\nDid you actually set \"GIT_EDITOR\" to the string \"editor of your\nchoice\", as opposed to the full path to Emacs, notepad or something\nlike that?\n"},{"id":"145737","messageId":"20100717171303.GB10730@burratino","threadId":"24423","inReplyTo":"001d01cb25cb$eb176980$c1463c80$@net","subject":"Re: Challenge with Git-Bash","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-07-17T17:13:03Z","receivedAt":"2010-07-17T17:13:03Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"(+cc: msysgit)\n\nHi Rainer,\n\nRainer Lauer wrote:\n\n> with my Windows 7 Git-Installation I get following challenge:\n>\n> 1)\tSet GIT_EDITOR to editor of your choice\n>\n> 2)\tWith Windows7 let this editor run in admin-mode\n> \tGoto .exe-file -> right mouse-click -> compatibility -> run program\n>\tas admin (I'm running a German version maybe English names are slightly\n>\tdifferent)\n>\n> 3)\tMake a git action like git add file\n>\t                       git commit\n> \tfrom the git bash.\n>\n> 4)\tNow following message appears:  sh.exe: ./\"editor of your choice\":\n> Bad file number\n>\n> Everything is fine without Admin-Mode set for editor.\n\nApparently “Bad file number” can mean “Permission denied” among other\nthings on Windows.  I do not have any better suggestion than to try\nrunning git bash as administrator too, sorry.\n\nRegards,\nJonathan\n"},{"id":"145754","messageId":"AANLkTinODbTbZ7CXaAxs83T_pdyvafWnjSI8kzjcWAXN@mail.gmail.com","threadId":"24423","inReplyTo":"007d01cb2687$62100a90$26301fb0$@gmx.net","subject":"Re: Challenge with Git-Bash","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-07-18T14:55:36Z","receivedAt":"2010-07-18T14:55:36Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Sun, Jul 18, 2010 at 14:42, Rainer Lauer <lauerr@gmx.net> wrote:\n> Hi,\n> thanks for the reply. I did set the full path to my editor of choice.\n\nGood that it worked out. CC-ing the list so that others encountering\nthis problem will find the solution.\n"},{"id":"145759","messageId":"007f01cb269b$0015dbd0$00419370$@gmx.net","threadId":"24423","inReplyTo":"AANLkTinODbTbZ7CXaAxs83T_pdyvafWnjSI8kzjcWAXN@mail.gmail.com","subject":"AW: Challenge with Git-Bash","fromName":"Rainer Lauer","fromEmail":"lauerr@gmx.net","sentAt":"2010-07-18T17:02:26Z","receivedAt":"2010-07-18T17:02:26Z","isPatch":false,"sender":{"key":"lauerr@gmx.net","avatar":null},"body":"Hi,\nfrom Jonathan Nieder <jrnieder@gmail.com> I got a successfully work-around. See attached mail.\nThanks for your support and amazingly fast response.\n\nRegis,\nRainer Lauer\n\n-----Ursprüngliche Nachricht-----\nVon: Ævar Arnfjörð Bjarmason [mailto:avarab@gmail.com] \nGesendet: Sonntag, 18. Juli 2010 16:56\nAn: Rainer Lauer\nCc: Git Mailing List\nBetreff: Re: Challenge with Git-Bash\n\nOn Sun, Jul 18, 2010 at 14:42, Rainer Lauer <lauerr@gmx.net> wrote:\n> Hi,\n> thanks for the reply. I did set the full path to my editor of choice.\n\nGood that it worked out. CC-ing the list so that others encountering this problem will find the solution.\n\n\n(+cc: msysgit)\n\nHi Rainer,\n\nRainer Lauer wrote:\n\n> with my Windows 7 Git-Installation I get following challenge:\n>\n> 1)\tSet GIT_EDITOR to editor of your choice\n>\n> 2)\tWith Windows7 let this editor run in admin-mode\n> \tGoto .exe-file -> right mouse-click -> compatibility -> run program\n>\tas admin (I'm running a German version maybe English names are slightly\n>\tdifferent)\n>\n> 3)\tMake a git action like git add file\n>\t                       git commit\n> \tfrom the git bash.\n>\n> 4)\tNow following message appears:  sh.exe: ./\"editor of your choice\":\n> Bad file number\n>\n> Everything is fine without Admin-Mode set for editor.\n\nApparently “Bad file number” can mean “Permission denied” among other\nthings on Windows.  I do not have any better suggestion than to try\nrunning git bash as administrator too, sorry.\n\nRegards,\nJonathan\n"},{"id":"145766","messageId":"008a01cb26a4$4313e360$c93baa20$@gmx.net","threadId":"24423","inReplyTo":"20100717171303.GB10730@burratino","subject":"AW: Challenge with Git-Bash","fromName":"Rainer Lauer","fromEmail":"lauerr@gmx.net","sentAt":"2010-07-18T18:08:44Z","receivedAt":"2010-07-18T18:08:44Z","isPatch":false,"sender":{"key":"lauerr@gmx.net","avatar":null},"body":"Hi Jonathan,\nthanks for this hint. Now it is working on the base of environment variables.\n\nIn order of automatically setting up my projects I'd like to use the configuration file for preparing  CVS-work instead introducing environment variables.\nUnfortunately, I'm facing another problem.\nFollowing commands don't modify .git/config coming along with my project(s).\ngit config user.name=\"Rainer Lauer\"\ngit config user.email=\"Rainer.Lauer@gmx.net\"\ngit config core.editor=\"c:/Program Files/SlickEditV14.0.2/win/vs.exe\"\nThe file seems to stay in initial revision as created with the command git init.\n\nWhere is following information stored? Command:  git config --global user.name=\"Rainer Lauer\". Did I get the documentation right that this is a definition for all projects?\n\nRegards,\nRainer\n\n-----Ursprüngliche Nachricht-----\nVon: Jonathan Nieder [mailto:jrnieder@gmail.com] \nGesendet: Samstag, 17. Juli 2010 19:13\nAn: Rainer Lauer\nCc: git@vger.kernel.org; msysgit@googlegroups.com\nBetreff: Re: Challenge with Git-Bash\n\n(+cc: msysgit)\n\nHi Rainer,\n\nRainer Lauer wrote:\n\n> with my Windows 7 Git-Installation I get following challenge:\n>\n> 1)\tSet GIT_EDITOR to editor of your choice\n>\n> 2)\tWith Windows7 let this editor run in admin-mode\n> \tGoto .exe-file -> right mouse-click -> compatibility -> run program\n>\tas admin (I'm running a German version maybe English names are slightly\n>\tdifferent)\n>\n> 3)\tMake a git action like git add file\n>\t                       git commit\n> \tfrom the git bash.\n>\n> 4)\tNow following message appears:  sh.exe: ./\"editor of your choice\":\n> Bad file number\n>\n> Everything is fine without Admin-Mode set for editor.\n\nApparently “Bad file number” can mean “Permission denied” among other things on Windows.  I do not have any better suggestion than to try running git bash as administrator too, sorry.\n\nRegards,\nJonathan\n"},{"id":"145767","messageId":"AANLkTinZCKIDh8bJUVXceqNYD1qkmWZ1fO67t0XJI5Uo@mail.gmail.com","threadId":"24423","inReplyTo":"008a01cb26a4$4313e360$c93baa20$@gmx.net","subject":"Re: Challenge with Git-Bash","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-07-18T18:11:30Z","receivedAt":"2010-07-18T18:11:30Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Sun, Jul 18, 2010 at 18:08, Rainer Lauer <lauerr@gmx.net> wrote:\n> Hi Jonathan,\n> thanks for this hint. Now it is working on the base of environment variables.\n>\n> In order of automatically setting up my projects I'd like to use the configuration file for preparing  CVS-work instead introducing environment variables.\n> Unfortunately, I'm facing another problem.\n> Following commands don't modify .git/config coming along with my project(s).\n> git config user.name=\"Rainer Lauer\"\n> git config user.email=\"Rainer.Lauer@gmx.net\"\n> git config core.editor=\"c:/Program Files/SlickEditV14.0.2/win/vs.exe\"\n> The file seems to stay in initial revision as created with the command git init.\n>\n> Where is following information stored? Command:  git config --global user.name=\"Rainer Lauer\". Did I get the documentation right that this is a definition for all projects?\n\nIf you're asking why your .git/config file isn't being carried over\nwhen you clone the repository that's because it's not supposed to, Git\ndoesn't work like that.\n"},{"id":"145768","messageId":"20100718181619.GA14367@burratino","threadId":"24423","inReplyTo":"008a01cb26a4$4313e360$c93baa20$@gmx.net","subject":"Files used by git config (Re: Challenge with Git-Bash)","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-07-18T18:16:19Z","receivedAt":"2010-07-18T18:16:19Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi again,\n\nRainer Lauer wrote:\n\n> Where is following information stored?\n> Command:  git config --global user.name=\"Rainer Lauer\".\n\nI recommend looking that the user manual[1] to start out.  It\nhas a few relevant hints.\n\nFrom the preface:\n\n\tComprehensive reference documentation is available\n\tthrough the man pages, or git-help(1) command. For\n\texample, for the command \"git clone <repo>\", you can\n\teither use:\n\n\t$ man git-clone\n\n\tor:\n\n\t$ git help clone\n\nFrom the start to “chapter 3: developing with git”:\n\n\tBefore creating any commits, you should introduce\n\tyourself to git. The easiest way to do so is to make sure\n\tthe following lines appear in a file named .gitconfig in\n\tyour home directory:\n\n\t[user]\n\t\tname = Your Name Comes Here\n\t\temail = you@yourdomain.example.com\n\n\t(See the \"CONFIGURATION FILE\" section of git-config(1)\n\tfor details on the configuration file.)\n\nRegards,\nJonathan\n\n[1] http://kernel.org/pub/software/scm/git/docs/user-manual.html\n"},{"id":"145804","messageId":"loom.20100719T200744-692@post.gmane.org","threadId":"24423","inReplyTo":"008a01cb26a4$4313e360$c93baa20$@gmx.net","subject":"Re: AW: Challenge with Git-Bash","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2010-07-19T18:09:31Z","receivedAt":"2010-07-19T18:09:31Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"Rainer Lauer <lauerr <at> gmx.net> writes:\n\n> Where is following information stored? Command:  git config --global \nuser.name=\"Rainer Lauer\".\n\nThe '=' appears in your config file (.git/config), but shouldn't be used\non the comand line.\n"}]}