From 80fad3b7b4ebdf7ffa6d417a1445af4812882531 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Tue, 21 Oct 2008 17:23:33 +0300 Subject: [PATCH] Always overwrite static files. Just in case they have been updated. --- gitstats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gitstats b/gitstats index da21154..c0a8f62 100755 --- a/gitstats +++ b/gitstats @@ -438,9 +438,8 @@ class HTMLReportCreator(ReportCreator): # copy static files if they do not exist for file in ('gitstats.css', 'sortable.js', 'arrow-up.gif', 'arrow-down.gif', 'arrow-none.gif'): - if not os.path.exists(path + '/' + file): - basedir = os.path.dirname(os.path.abspath(__file__)) - shutil.copyfile(basedir + '/' + file, path + '/' + file) + basedir = os.path.dirname(os.path.abspath(__file__)) + shutil.copyfile(basedir + '/' + file, path + '/' + file) f = open(path + "/index.html", 'w') format = '%Y-%m-%d %H:%m:%S' -- 2.11.4.GIT