From 059b43d5e85d03f202c81086f2c66ed40b234162 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 28 Dec 2012 22:43:42 +0000 Subject: Exclude git dirs from the hash It's unnecessary and it causes unnecessary updates because apparently the content changes on fetch. --- (limited to 'devbot/state.py') diff --git a/devbot/state.py b/devbot/state.py index 1a6e5b0..f3cce7a 100644 --- a/devbot/state.py +++ b/devbot/state.py @@ -114,4 +114,7 @@ def _compute_mtime_hash(path): mtime = os.lstat(path).st_mtime data = "%s%s %s\n" % (data, mtime, path) + if ".git" in dirs: + dirs.remove(".git") + return hashlib.sha256(data).hexdigest() -- cgit v0.9.1