summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorMartyn Smith <martyn@catalyst.net.nz>2006-03-17 00:33:19 (GMT)
committerMartin Langhoff <martin@catalyst.net.nz>2006-05-07 22:10:48 (GMT)
commit568907f52051f340dc29a907f67e69260d7d4e7a (patch)
tree6702c3c6b086da214544efeadca3a1a7578e22c0 /git-cvsserver.perl
parent50c08d48722149d95f46bcc80a5211ea04b8a809 (diff)
downloadgit-568907f52051f340dc29a907f67e69260d7d4e7a.zip
git-568907f52051f340dc29a907f67e69260d7d4e7a.tar.gz
git-568907f52051f340dc29a907f67e69260d7d4e7a.tar.bz2
Added logged warnings for CVS error returns
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-xgit-cvsserver.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index ffd9c66..2e9b673 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;
}