summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/release.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2017-06-01 08:08:25 +0000
committerJoris Vink <joris@cvs.openbsd.org>2017-06-01 08:08:25 +0000
commit550e39d44e12ce93d0c6f866d36bc7607dad6a05 (patch)
tree76bf855c9543b881dd06e9e7546719be13b85099 /usr.bin/cvs/release.c
parenta370b2e764407f644a4a9249e7f58cad0ec01915 (diff)
Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.
Instead use cvsroot_is_local() and cvsroot_is_remote().
Diffstat (limited to 'usr.bin/cvs/release.c')
-rw-r--r--usr.bin/cvs/release.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/release.c b/usr.bin/cvs/release.c
index 9544791cb07..e965ad66713 100644
--- a/usr.bin/cvs/release.c
+++ b/usr.bin/cvs/release.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: release.c,v 1.42 2015/01/16 06:40:07 deraadt Exp $ */
+/* $OpenBSD: release.c,v 1.43 2017/06/01 08:08:24 joris Exp $ */
/*-
* Copyright (c) 2005-2007 Xavier Santolaria <xsa@openbsd.org>
*
@@ -68,7 +68,7 @@ cvs_release(int argc, char **argv)
cr.enterdir = NULL;
cr.leavedir = NULL;
- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
+ if (cvsroot_is_remote()) {
cvs_client_connect_to_server();
cr.fileproc = cvs_client_sendfile;
@@ -81,7 +81,7 @@ cvs_release(int argc, char **argv)
cvs_file_run(argc, argv, &cr);
- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
+ if (cvsroot_is_remote()) {
cvs_client_send_files(argv, argc);
cvs_client_senddir(".");
cvs_client_send_request("release");