summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Martyn Smith <martyn@catalyst.net.nz>2006-03-17 13:33:19 +1300
committerLibravatar Martin Langhoff <martin@catalyst.net.nz>2006-05-08 10:10:48 +1200
commit568907f52051f340dc29a907f67e69260d7d4e7a (patch)
tree6702c3c6b086da214544efeadca3a1a7578e22c0
parentMerge with git://kernel.org/pub/scm/git/git.git (diff)
downloadtgif-568907f52051f340dc29a907f67e69260d7d4e7a.tar.xz
Added logged warnings for CVS error returns
-rwxr-xr-xgit-cvsserver.perl2
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;
}