diff --git a/Sparkles/Git/GitRepository.cs b/Sparkles/Git/GitRepository.cs index 576d5648..2ea05d2d 100644 --- a/Sparkles/Git/GitRepository.cs +++ b/Sparkles/Git/GitRepository.cs @@ -82,11 +82,13 @@ namespace Sparkles.Git { git_config = new GitCommand (LocalPath, "config core.sshCommand " + GitCommand.FormatGitSSHCommand (auth_info)); git_config.StartAndWaitForExit(); - string pre_push_hook_path = Path.Combine (LocalPath, ".git", "hooks", "pre-push"); + if (InstallationInfo.OperatingSystem != OS.Windows) { + string pre_push_hook_path = Path.Combine (LocalPath, ".git", "hooks", "pre-push"); - // TODO: Use proper API - var chmod = new Command ("chmod", "700 " + pre_push_hook_path); - chmod.StartAndWaitForExit (); + // TODO: Use proper API + var chmod = new Command ("chmod", "700 " + pre_push_hook_path); + chmod.StartAndWaitForExit (); + } }