Code

Merge branch 'lt/time-reject-fractional-seconds'
[git.git] / contrib / hooks / update-paranoid
index ae94822cd3a0a503b77cd86d37f523f19c13a715..d18b317b2f018d1d1a5a9677a7bdaf8956d65186 100644 (file)
@@ -259,6 +259,7 @@ deny "Refusing funny ref $ref" unless $ref =~ s,^refs/,,;
 deny "Bad old value $old" unless $old =~ /^[a-z0-9]{40}$/;
 deny "Bad new value $new" unless $new =~ /^[a-z0-9]{40}$/;
 deny "Cannot determine who you are." unless $this_user;
+grant "No change requested." if $old eq $new;
 
 $repository_name = File::Spec->rel2abs($git_dir);
 $repository_name =~ m,/([^/]+)(?:\.git|/\.git)$,;