#!/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", "https://camlistore.googlesource.com/camlistore", "HEAD:refs/for/master");