]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-cvsserver.perl
Allow fetching references from any namespace
[git.git] / git-cvsserver.perl
index 68aa75255e21ff8231fe2f54e5772f8cbb026fce..3501c1bc3a7fb1482ef3eec10c9fc91bf4d19e4d 100755 (executable)
@@ -843,6 +843,7 @@ sub req_update
         if ( defined ( $wrev )
              and defined($meta->{revision})
              and $wrev == $meta->{revision}
+             and defined($state->{entries}{$filename}{modified_hash})
              and not exists ( $state->{opt}{C} ) )
         {
             $log->info("Tell the client the file is modified");
@@ -2453,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},