summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49fb940)
raw | patch | inline | side by side (parent: 49fb940)
author | Martin Langhoff <martin@catalyst.net.nz> | |
Tue, 9 Jan 2007 02:10:41 +0000 (15:10 +1300) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 9 Jan 2007 05:45:13 +0000 (21:45 -0800) |
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>
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>
git-cvsserver.perl | patch | blob | history |
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index eb98fa0857cb9e7dffd51ef5bb4a7abc0f6e3411..a33a876ff652fea5a0a8933b919982557a7093de 100755 (executable)
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
$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";