#!/usr/bin/perl use strict; use FindBin qw($Bin); my $hook_file = "$Bin/../.git/hooks/commit-msg"; unless (-e $hook_file) { print <); system("git", "commit", "--amend") and die "git commit --amend fail\n"; } exec("git", "push", "ssh://camlistore.org:29418/camlistore", "HEAD:refs/for/master");