diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-06-28 17:45:50 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-06-28 17:45:50 +0000 |
commit | d9f5a5e9b0a4c8a8195c2bee0e55b5edf05c9f10 (patch) | |
tree | 6a7386296689082272ee9692b20d48d0ee2cc3f9 /usr.bin/cvs/commit.c | |
parent | b8a7c18f128f462fafa5ff13c87c1d9b132660ff (diff) |
When commiting to a server in a remote setup classify
the files based upon their entry in CVS/Entries instead of
using the local classifying code and trying to locate the RCSfile
on our local disks, which ofc does not work correctly.
OK niallo@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 2d686047b7a..afa9c6ed9a0 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.107 2007/06/18 17:54:13 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.108 2007/06/28 17:45:49 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -153,7 +153,10 @@ cvs_commit_check_files(struct cvs_file *cf) { cvs_log(LP_TRACE, "cvs_commit_check_files(%s)", cf->file_path); - cvs_file_classify(cf, NULL); + if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) + cvs_remote_classify_file(cf); + else + cvs_file_classify(cf, NULL); if (cf->file_type == CVS_DIR) { if (verbosity > 1) |