Red Hat Bugzilla – Bug 17120
cvs commit fails on 6.2+, haven't tried on 6.1
Last modified: 2007-04-18 12:28:27 EDT
cvs commit fails with:
cvs commit: in directory linux/Documentation/DocBook:
cvs [commit aborted]: there is no version here; do 'cvs checkout' first
The following patch fixes it against cvs-1.10.8-8, but I don't know if it
is correct. Sorry about the mangled spacing on the patch, but email to
kingdon is not working.
diff -ur cvs-1.10.8/src/recurse.c cvs-1.10.8-ben/src/recurse.c
--- cvs-1.10.8/src/recurse.c Tue Aug 17 13:16:25 1999
+++ cvs-1.10.8-ben/src/recurse.c Wed Aug 30 17:45:33 2000
@@ -1087,14 +1087,15 @@
(void) strcpy (update_dir, ".");
+ /* get back to where we started and restore state vars */
+ if (restore_cwd (&cwd, NULL))
+ error_exit ();
/* call-back dir leave proc (if any) */
if (process_this_directory && frame->dirleaveproc != NULL)
err = frame->dirleaveproc (frame->callerdat, dir, err,
- /* get back to where we started and restore state vars */
- if (restore_cwd (&cwd, NULL))
- error_exit ();
dirlist = sdirlist;
repository = srepository;
Don't apply the patch; it breaks loads of other parts of cvs.
an update: this bug is triggered by using cvs update -r to switch between tags.
Is there an update to the last patch?
patch is bitrotted... cvs commits using current version seem to work