salt icon indicating copy to clipboard operation
salt copied to clipboard

Git module for Windows

Open belawaeckerlig opened this issue 12 years ago • 4 comments

Hi,

i do not get the git-module working on window. I installed git and added it to PATH, but the minion always response '"git.clone" is not available'.

Do i need anithing else to get git module working on windows

With kind regards, todesregen

belawaeckerlig avatar Jan 20 '14 12:01 belawaeckerlig

The problem is that the git module utilizes the pipes module from the Python standard library, which interfaces with the shell pipelines on POSIX systems. So as it's written, it cannot support Windows.

That being said, it would be great if someone either modified this module to support Windows or wrote a new Windows-specific module. I'm filing this as an issue and changing the title accordingly.

basepi avatar Jan 22 '14 21:01 basepi

Hi,

thank you for the response. There is a methode called list2cmdline in the subprocess module. Maybe this will do it. It should translate a sequence of arguments into a command line string, using the same rules as the MS C runtime.

belawaeckerlig avatar Jan 23 '14 07:01 belawaeckerlig

I '+1' this feature. I have a workaround that utilises the application from cmd.run, but direct integration would be awesome.

t-v avatar Jan 27 '14 09:01 t-v

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jun 14 '17 01:06 stale[bot]