info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how-to get real username in loginfo with :pserver


From: Larry Jones
Subject: Re: how-to get real username in loginfo with :pserver
Date: Wed, 6 Jun 2001 17:41:18 -0400 (EDT)

Paul MacAdam writes:
> 
>     ALL (echo ""; id; date; echo %{sVv}; cat) >>
> /cvs-root/CVSROOT/commitlog;
> 
> Problem is, every entry in commitlog identifies the committing user as
> "cvs."

Don't use ``id'', use CVS's $USER internal variable:

        ALL (echo ""; echo $USER; date; echo %{sVv}; cat) 
>>$CVSROOT/CVSROOT/commitlog

(Note that I also used the $CVSROOT internal variable to avoid
hard-coding the repository location.)

-Larry Jones

I don't think that question was very hypothetical at all. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]