From 0ae8b8257701dd336556d428a15bfb623bbb7c9e Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Fri, 14 Aug 2009 14:06:45 -0400 Subject: [PATCH] workdirs: ensure the .yap directory exists in the new repo --- plugins/workdir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/workdir.py b/plugins/workdir.py index a2b51ab..7587b78 100644 --- a/plugins/workdir.py +++ b/plugins/workdir.py @@ -15,7 +15,7 @@ class WorkdirPlugin(YapCore): repo = get_output('git rev-parse --git-dir')[0] dir = os.path.join(repo, 'yap', 'lock') try: - os.mkdir(dir) + os.makedirs(dir) except OSError: pass @@ -30,7 +30,7 @@ class WorkdirPlugin(YapCore): repo = get_output('git rev-parse --git-dir')[0] dir = os.path.join(repo, 'yap', 'lock') try: - os.mkdir(dir) + os.makedirs(dir) except OSError: pass -- 2.11.4.GIT