Skip to content

[Improvement] The executable 'git' could not be found #543

Closed
@GeertvanHorrik

Description

@GeertvanHorrik

Haven't really dug into this problem, but it's related to #542 (I found this out via that issue):

INFO [07/28/15 11:14:12:11] Here is the current git graph (please include in issue): 
INFO [07/28/15 11:14:12:11] Showing max of 100 commits
INFO [07/28/15 11:14:12:11] Could not execute 'git log' due to the following error:
System.IO.FileNotFoundException: The executable file 'git' could not be found.
File name: 'git' ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at GitVersion.Helpers.ProcessHelper.Start(ProcessStartInfo startInfo) in c:\projects\gitversion\src\GitVersionCore\Helpers\ProcessHelper.cs:line 26
at GitVersion.Helpers.ProcessHelper.Start(ProcessStartInfo startInfo) in c:\projects\gitversion\src\GitVersionCore\Helpers\ProcessHelper.cs:line 40
at GitVersion.Helpers.ProcessHelper.Run(Action`1 output, Action`1 errorOutput, TextReader input, String exe, String args, String workingDirectory, KeyValuePair`2[] environmentalVariables) in c:\projects\gitversion\src\GitVersionCore\Helpers\ProcessHelper.cs:line 85
at GitVersion.LibGitExtensions.DumpGraph(String workingDirectory, Action`1 writer, Nullable`1 maxCommits) in c:\projects\gitversion\src\GitVersionCore\LibGitExtensions.cs:line 192

Maybe the path determination should be improved a bit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions