diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-07-26 16:03:21 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-07-26 16:03:21 +0000 |
commit | e92da3b2f5f6c6f1c74b0440e1bca642353c33af (patch) | |
tree | 0b7d2325f0e4deaa219ec6389167aab7a5677d43 /usr.bin | |
parent | c58fc5031d57cd363a3794b6f68165abc42090d9 (diff) |
move trace message before calling cvs_connect();
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c index 11c8d155842..c4e37c10d0a 100644 --- a/usr.bin/cvs/cmd.c +++ b/usr.bin/cvs/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.32 2005/07/25 12:05:43 xsa Exp $ */ +/* $OpenBSD: cmd.c,v 1.33 2005/07/26 16:03:20 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -171,11 +171,11 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv) if (!(cmd->cmd_flags & CVS_CMD_ALLOWSPEC) && (argc > 0)) return (CVS_EX_USAGE); + cvs_log(LP_TRACE, "cvs_startcmd() CVSROOT=%s", root->cr_str); + if ((root->cr_method != CVS_METHOD_LOCAL) && (cvs_connect(root) < 0)) return (CVS_EX_PROTO); - cvs_log(LP_TRACE, "cvs_startcmd() CVSROOT=%s", root->cr_str); - if (cmd->cmd_pre_exec != NULL) { if ((ret = cmd->cmd_pre_exec(root)) != 0) return (ret); |