Browse Source

cvsserver: Handle re-added files correctly

We can't unconditionally assign revision 1.1 to
newly added files. In case the file did exist in the
past and was deleted we need to honor the old
revision number.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Frank Lichtenheld 18 years ago committed by Junio C Hamano
parent
commit
a7da9adb1f
  1. 2
      git-cvsserver.perl

2
git-cvsserver.perl

@ -2454,7 +2454,7 @@ sub update @@ -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},

Loading…
Cancel
Save