diff options
author | 2005-04-19 00:34:39 +0000 | |
---|---|---|
committer | 2005-04-19 00:34:39 +0000 | |
commit | ca903b70b59e4045ad2f8b5dccf6cd084690b568 (patch) | |
tree | 0582d855c54495feb55c8f7a9c333ef6f5c95816 /usr.bin/cvs/commit.c | |
parent | update cf_type to the correct type if we cannot stat(2) the (diff) | |
download | wireguard-openbsd-ca903b70b59e4045ad2f8b5dccf6cd084690b568.tar.xz wireguard-openbsd-ca903b70b59e4045ad2f8b5dccf6cd084690b568.zip |
make sure we pick up newly added files.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index aaa6d4a3387..cc041d4b82a 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.26 2005/04/18 21:02:49 jfb Exp $ */ +/* $OpenBSD: commit.c,v 1.27 2005/04/19 00:34:39 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -142,7 +142,9 @@ cvs_commit_prepare(CVSFILE *cf, void *arg) CVSFILE *copy; struct cvs_flist *clp = (struct cvs_flist *)arg; - if ((cf->cf_type == DT_REG) && (cf->cf_cvstat == CVS_FST_MODIFIED)) { + if ((cf->cf_type == DT_REG) && ((cf->cf_cvstat == CVS_FST_MODIFIED) || + (cf->cf_cvstat == CVS_FST_ADDED))) { + printf("copying %s\n", CVS_FILE_NAME(cf)); copy = cvs_file_copy(cf); if (copy == NULL) return (CVS_EX_DATA); |