commit | 05fed6074ee2d4e6f8fe1415d1d99e98df4df686 | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@hp.com> | Fri Sep 07 12:45:24 2012 -0700 |
committer | Jenkins <jenkins@review.openstack.org> | Tue Sep 11 17:38:20 2012 +0000 |
tree | e08259f961924425115c7e2ab318d4ea82b7fdd6 | |
parent | 906f8940bdc6528780cbc578dd3a9929f6975168 [diff] |
Clear the git repo cache on update. The GitPython Repo object caches whether a given sha is held in an packed or loose database. If the remote repository is repacked, that information could be invalid. Therefore, each time the local repo is updated from the remote, clear the object database cache. See this file for the cache in action: https://github.com/gitpython-developers/gitdb/blob/master/gitdb/db/base.py#L227 Change-Id: I547ba01d8cdc20f431e93e02736b498f744992c0 Reviewed-on: https://review.openstack.org/12597 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins