Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

On Windows git version is 1.7.10 but Stash says git not found in path please install 1.7.6 or higher

Pankaj Jangid
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 16, 2012

d: personal my-stash>git --version

git version 1.7.10.msysgit.1

But stash says this

A fatal error has occurred

The following problem occurred which prevents Atlassian Stash from starting correctly:

git was not found on the PATH for Stash. Please add git version 1.7.6 or higher to the PATH and restart Stash.

This is a bug in stash. Because of, may be, the string .msysgit.1 appended to the version, stash is reporting this error and not starting.

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
rverschoor
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2012

I've just reproduced this error, and found out what's causing it.

When you install msysgit, you are asked in one of the dialogs how your PATH should be modified.

  1. Use Git Bash Only
  2. Run Git from the Windows Command Prompt
  3. Run Git and included Unix tools from the Windows Command Prompt

If you select option 2. (which I guess most users will pick, as option 3. has a scary warning), the "<...>\Git\cmd" directory will be added to the PATH.
If you pick option 3. the "<...>\Git\bin" directory will also be added.

Now if you run "git --version" from the commadline, it will run "<...>\Git\cmd\git.cmd", which will call "git.exe --version".
Stash however tries to run "git.exe --version".
If you've installed msysgit with option 3. you're fine, as "<...>\Git\bin\git.exe" is in your path.
Did you select option 2. you're out of luck as that directory was not added to your path.

The solution is to either run the msysgit installer again and select option 3. to have your PATH properly set, or edit your PATH manually.

I will create a bugreport to inform the developers.

0 votes
Javi Cortina May 18, 2012

I've fixed the problem removing "<...>\Git\cmd\git.cmd" from PATH.... I don't know if this can induce other problems.....

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2012

I hit that bug as well... I really can't remember the solution, but I did get it working with the same version as you are using.

TAGS
AUG Leaders

Atlassian Community Events