[projects/git-slug: 95/170] Initialize REFREPO_GDIR if it does not exist
glen
glen at pld-linux.org
Mon Sep 21 21:46:48 CEST 2015
commit 96aec62f777dcce3b7947c185ccf25dbe41a2fe2
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Wed Mar 14 18:10:18 2012 +0000
Initialize REFREPO_GDIR if it does not exist
slug_watch | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/slug_watch b/slug_watch
index f82e3f0..1e6cb5c 100755
--- a/slug_watch
+++ b/slug_watch
@@ -93,6 +93,8 @@ def runwatch(user=None):
if not os.path.isdir(directory):
print('Creating {}'.format(directory))
os.mkdir(directory)
+ if not os.path.isdir(REFREPO_GDIR):
+ GitRepo(git_dir=REFREPO_GDIR).init_gitdir()
with lock(LOCKFILE):
wm = pyinotify.WatchManager() # Watch Manager
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list