blame: Notice a wholesale incorporation of an existing file.
[gitweb.git] / git-cvsserver.perl
index 25816c5a21285cae1d8e42f46f26126a03c6631f..3501c1bc3a7fb1482ef3eec10c9fc91bf4d19e4d 100755 (executable)
@@ -2454,7 +2454,7 @@ sub update
                     #$log->debug("ADDED    $name");
                     $head->{$name} = {
                         name => $name,
-                        revision => 1,
+                        revision => $head->{$name}{revision} ? $head->{$name}{revision}+1 : 1,
                         filehash => $hash,
                         commithash => $commit->{hash},
                         modified => $commit->{date},