From: Ævar Arnfjörð Bjarmason Date: Sat, 17 Jul 2010 16:36:30 GMT Subject: Re: Challenge with Git-Bash Message-ID: In-Reply-To: <001d01cb25cb$eb176980$c1463c80$@net> On Sat, Jul 17, 2010 at 16:20, Rainer Lauer wrote: > Hello, > with my Windows 7 Git-Installation I get following challenge: > 1)      Set GIT_EDITOR to editor of your choice > 2)      With Windows7 let this editor run in admin-mode >        Goto .exe-file -> right mouse-click -> compatibility -> run program > as admin (I'm running a German version maybe English names are slightly > different) > 3)      Make a git action like git add file >                             git commit >        from the git bash. > 4)      Now following message appears:  sh.exe: ./"editor of your choice": > Bad file number > Everything is fine without Admin-Mode set for editor. In other words if you > get rid of step 2) step 4) doesn't appear instead the editor starts. > Due to other tasks my editor of choice has to run in this mode - stupid > enough. > > Any chance to get around this problem? > (No not taking a different editor, no not getting rid of admin mode :) ) Did you actually set "GIT_EDITOR" to the string "editor of your choice", as opposed to the full path to Emacs, notepad or something like that?