diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 22:43:42 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 22:43:42 (GMT) |
commit | 059b43d5e85d03f202c81086f2c66ed40b234162 (patch) | |
tree | 4f0295aa48017afbf46505d9190cf739860c9168 /devbot/state.py | |
parent | 09338e978c4ca7f327129fc1e67d48255466d4c7 (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/state.py')
-rw-r--r-- | devbot/state.py | 3 |
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() |