diff options
author | Martyn Smith <martyn@catalyst.net.nz> | 2006-03-17 13:33:19 +1300 |
---|---|---|
committer | Martin Langhoff <martin@catalyst.net.nz> | 2006-05-08 10:10:48 +1200 |
commit | 568907f52051f340dc29a907f67e69260d7d4e7a (patch) | |
tree | 6702c3c6b086da214544efeadca3a1a7578e22c0 /git-cvsserver.perl | |
parent | 50c08d48722149d95f46bcc80a5211ea04b8a809 (diff) | |
download | git-568907f52051f340dc29a907f67e69260d7d4e7a.tar.gz |
Added logged warnings for CVS error returns
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-x | git-cvsserver.perl | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |