How do automatically run a script after cvs update?
-
11-06-2021 - |
Question
Everyday morning I update my local code using cvs update
. The problem is that CVS stores my password. I usually type cvs logout
from cmd in order not to use my user any more. This way I will prevent myself from accidental commits to CVS. Any ideas on how to log out automatically after running cvs update
?
Solution
CVS has pre and post-commit hooks. There is no update hook. https://priyamuthukumar.wordpress.com/tag/cvs-hooks/
The easiest way is to code a script which updates and then logs out.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow