posh-gitflow icon indicating copy to clipboard operation
posh-gitflow copied to clipboard

Ability to install withut Github desktop app installed

Open ielcoro opened this issue 9 years ago • 3 comments

As talked in #8 it has been difficult to make posh-gitflow work without GitHub desktop installed. This pull request adds support for installing without GitHub desktop, allowing to be use with official installations of git for windows.

The flow first searches for known git environment variables, if not found tries to look for a Github desktop installation as before. It allows the user to override the search logic, by passing the git installation path as paremeter.

ielcoro avatar Aug 06 '15 17:08 ielcoro

A quick question about the logic flow here -- it looks like this installs into either the global git install or all of the versions of portable git (however many there are). Should it installs into global git + portable git if both exist?

JacobIU avatar Aug 07 '15 19:08 JacobIU

You are right, it installs either into the global got installation or the github installation. As posh-got flow is a command line utility I thinked that inside the command line, global got would take preference, as it's exposed through environment variables.

However, if it's is possible to launch a shell from github desktop that ignores the global git installation, modifying the logic flow to install in both locations if they are found, could make sense. It's being a while since I used github desktop though...

Anyway searching for both locations looks like an easy change.

ielcoro avatar Aug 07 '15 19:08 ielcoro

Any thoughts?

Should I change the logic?

ielcoro avatar Aug 11 '15 22:08 ielcoro