From: Martyn Smith Date: Fri, 17 Mar 2006 00:33:19 +0000 (+1300) Subject: Added logged warnings for CVS error returns X-Git-Tag: v1.4.1-rc1~120^2^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/568907f52051f340dc29a907f67e69260d7d4e7a Added logged warnings for CVS error returns --- diff --git a/git-cvsserver.perl b/git-cvsserver.perl index ffd9c66f94..2e9b673372 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -950,6 +950,7 @@ sub req_ci if ( -e $state->{CVSROOT} . "/index" ) { + $log->warn("file 'index' already exists in the git repository"); print "error 1 Index already exists in git repo\n"; exit; } @@ -957,6 +958,7 @@ sub req_ci my $lockfile = "$state->{CVSROOT}/refs/heads/$state->{module}.lock"; unless ( sysopen(LOCKFILE,$lockfile,O_EXCL|O_CREAT|O_WRONLY) ) { + $log->warn("lockfile '$lockfile' already exists, please try again"); print "error 1 Lock file '$lockfile' already exists, please try again\n"; exit; }