Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Fix Git component #791

Closed
wants to merge 2 commits into from
Closed

Conversation

mplevako
Copy link

Remove the dependency on Git bash and change the way a Git installation is detected.

Resolves: #343, #335, #640, #466, #687, #636 and #226, #246, #295, #276.

Different Git packages use different installation paths, which, in
their turn may also be redefined by the user. Moreover, even if Git
is installed there is no guarantee that the Bash component is also
present. So there is little sense to depend on Git bash or to consider
it to be at any specific location.

Resolves: docker-archive#343, docker-archive#335, docker-archive#640, docker-archive#466, docker-archive#687, docker-archive#636.

Signed-off-by: Maxim Plevako <mplevako@gmail.com>
Different Git packages use different installation paths, which, in
their turn, may also be redefined by the user. Also, many packages
don't modify the registry and even those that do use different registry
branches, entries and names. Therefore it is unreliable to check for
existence of any assumed paths, files or registry entries to detect
whether Git is already installed.
Docker itself assumes that the path to the git command is present in
the PATH environment variable so it is enough to use the where command
which is present in all Windows OSes required by Docker.

Resolves: docker-archive#226, docker-archive#246, docker-archive#295, docker-archive#276.

Signed-off-by: Maxim Plevako <mplevako@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows] Docker Quickstart Terminal does not use the right path to Git
2 participants