Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.3.0.M4
    • Component/s: forge
    • Labels:
      None
    • Environment:
      Windows 7 (64 bits)

      Description

      In Windows, when I start the Forge console view and run the command "git", I get the following error:

      ***ERROR*** [git] Cannot run program "git" (in directory "D:\eclipse\workspace"): CreateProcess error=2, The system cannot find the file specified
      

      However, it works fine when I run outside eclipse (in Forge command client).

        Gliffy Diagrams

          Activity

          Hide
          koen.aers Koen Aers added a comment -

          George, which Git client are you using? If it is Msysgit, what options did you use during installation? I have tried to reproduce the issue and I see the error that you described but contrarily to your case even the Forge command client doesn't want to execute my Git commands... :-/

          Show
          koen.aers Koen Aers added a comment - George, which Git client are you using? If it is Msysgit, what options did you use during installation? I have tried to reproduce the issue and I see the error that you described but contrarily to your case even the Forge command client doesn't want to execute my Git commands... :-/
          Hide
          gastaldi George Gastaldi added a comment -

          Hey Koen,

          I installed msysgit using the default options.
          Thats weird indeed.

          Regards,

          George

          Show
          gastaldi George Gastaldi added a comment - Hey Koen, I installed msysgit using the default options. Thats weird indeed. Regards, George
          Hide
          koen.aers Koen Aers added a comment -

          George,

          I took some time to look at this issue today and I (hopefully) have good news.

          I was able to use the 'git' command from the vanilla Forge command client as well as from the JBoss Tools version by adding the entry %GIT_HOME%\bin to my %PATH% environment variable where %GIT_HOME% is the location where you installed Msysgit (normally this would be 'C:\Program Files\Git').

          Can you check if this also works on your environment? If it does, feel free to close the issue.

          Cheers,
          Koen

          Show
          koen.aers Koen Aers added a comment - George, I took some time to look at this issue today and I (hopefully) have good news. I was able to use the 'git' command from the vanilla Forge command client as well as from the JBoss Tools version by adding the entry %GIT_HOME%\bin to my %PATH% environment variable where %GIT_HOME% is the location where you installed Msysgit (normally this would be 'C:\Program Files\Git'). Can you check if this also works on your environment? If it does, feel free to close the issue. Cheers, Koen
          Hide
          koen.aers Koen Aers added a comment -

          Moving to beta1 because I'm not sure yet if the problem has been solved. Waiting for input from George.

          Show
          koen.aers Koen Aers added a comment - Moving to beta1 because I'm not sure yet if the problem has been solved. Waiting for input from George.
          Hide
          gastaldi George Gastaldi added a comment -

          The solution is to place GIT under the PATH variable, as described above.

          Show
          gastaldi George Gastaldi added a comment - The solution is to place GIT under the PATH variable, as described above.
          Hide
          koen.aers Koen Aers added a comment -

          Reopen issue to set Fix Version back to M4

          Show
          koen.aers Koen Aers added a comment - Reopen issue to set Fix Version back to M4
          Hide
          psrna Pavol Srna added a comment -

          Verified on JBT 3.3.0.CR1 - h161 build. Closing.

          Show
          psrna Pavol Srna added a comment - Verified on JBT 3.3.0.CR1 - h161 build. Closing.

            People

            • Assignee:
              koen.aers Koen Aers
              Reporter:
              gastaldi George Gastaldi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development