Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-28 22:43:42 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-28 22:43:42 (GMT)
commit059b43d5e85d03f202c81086f2c66ed40b234162 (patch)
tree4f0295aa48017afbf46505d9190cf739860c9168 /devbot
parent09338e978c4ca7f327129fc1e67d48255466d4c7 (diff)
Exclude git dirs from the hash
It's unnecessary and it causes unnecessary updates because apparently the content changes on fetch.
Diffstat (limited to 'devbot')
-rw-r--r--devbot/state.py3
1 files changed, 3 insertions, 0 deletions
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()