repo git: Always make sure LFS pre-push hook is executable

This commit is contained in:
Hylke Bons 2018-06-15 22:25:43 +01:00
parent 6f173be21b
commit 214a383923

View file

@ -81,6 +81,12 @@ 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");
// TODO: Use proper API
var chmod = new Command ("chmod", "700 " + pre_push_hook_path);
chmod.StartAndWaitForExit ();
}