[PATCH] CVS ${HOME} should be an absolute path
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list <meld-list gnome org>, Stephen Kennedy <stevek gnome org>
- Subject: [PATCH] CVS ${HOME} should be an absolute path
- Date: Sat, 28 Mar 2009 01:49:57 +0100
Was that a cut'n'paste mistake, or was it really intended
to os.path.join directory with ${HOME} here. I don't
understand how it could make sense. Please explain.
--
Vincent Legoll
Index: vc/cvs.py
===================================================================
--- vc/cvs.py (revision 1298)
+++ vc/cvs.py (working copy)
@@ -140,8 +140,8 @@
cvsfiles = map(lambda x: x[1], matches)
# ignored
try:
- ignored = open( os.path.join(directory, "%s/.cvsignore" % os.environ["HOME"] )).read().split()
- except (IOError,KeyError):
+ ignored = open(os.path.join(os.environ["HOME"], ".cvsignore")).read().split()
+ except (IOError, KeyError):
ignored = []
try:
ignored += open( os.path.join(directory, ".cvsignore")).read().split()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]