=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/history.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- src/usr.bin/cvs/history.c 2008/01/31 10:15:05 1.35 +++ src/usr.bin/cvs/history.c 2008/06/10 15:55:54 1.36 @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.35 2008/01/31 10:15:05 tobias Exp $ */ +/* $OpenBSD: history.c,v 1.36 2008/06/10 15:55:54 tobias Exp $ */ /* * Copyright (c) 2007 Joris Vink * @@ -86,7 +86,8 @@ /* construct repository field */ if (cvs_cmdop != CVS_OP_CHECKOUT && cvs_cmdop != CVS_OP_EXPORT) { - cvs_get_repository_name(".", repo, sizeof(repo)); + cvs_get_repository_name((cf != NULL) ? cf->file_wd : ".", + repo, sizeof(repo)); } else { strlcpy(repo, argument, sizeof(repo)); }