Skip to content

Commit

Permalink
Added logged warnings for CVS error returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyn Smith authored and Martin Langhoff committed May 7, 2006
1 parent 50c08d4 commit 568907f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -950,13 +950,15 @@ 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;
}

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;
}
Expand Down

0 comments on commit 568907f

Please sign in to comment.