diff options
author | Martin Langhoff <martin@catalyst.net.nz> | 2007-01-09 15:10:41 +1300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-08 21:45:13 -0800 |
commit | 3486595bf1671cabb6fa22d276db2907eefbf9b6 (patch) | |
tree | 17ff21fd49914e86e5939bc77580b3f18c9b7a19 /git-cvsserver.perl | |
parent | 49fb940e4025f36953cd938576ec8306335c6cd0 (diff) | |
download | git-3486595bf1671cabb6fa22d276db2907eefbf9b6.tar.gz |
cvsserver: fix revision number during file adds
With this patch, cvs add / cvs commit echoes back to the client
the correct file version (1.1) so that the file in the checkout
is recognised as up-to-date.
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-x | git-cvsserver.perl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl index eb98fa0857..a33a876ff6 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -1181,12 +1181,15 @@ sub req_ci $filename = filecleanup($filename); my $meta = $updater->getmeta($filename); + unless (defined $meta->{revision}) { + $meta->{revision} = 1; + } my ( $filepart, $dirpart ) = filenamesplit($filename, 1); $log->debug("Checked-in $dirpart : $filename"); - if ( $meta->{filehash} eq "deleted" ) + if ( defined $meta->{filehash} && $meta->{filehash} eq "deleted" ) { print "Remove-entry $dirpart\n"; print "$filename\n"; |