commit | b67574af57e9569215117e548908e1950a5679b4 | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@linux.vnet.ibm.com> | Sat Feb 20 09:19:19 2016 -0800 |
committer | James E. Blair <jeblair@linux.vnet.ibm.com> | Sat Feb 20 09:21:41 2016 -0800 |
tree | 3d787fe1373bf1317e1a4655a9fd410c81986e5a | |
parent | afb9b2039ce366cc096bcea5b908cfc9181e6f6b [diff] |
Cloner: use cache if dest exists The logic to decide whether or not to use the cache attempted to detect whether the repo had previously been cloned. It only did that by checking whether the destination directory exists. However, it's perfectly valid for the dest dir to exist if it is empty. Adjust the check to look for a .git dir within the dest dir to decide if the repo has already been cloned. Change-Id: I17926efcf0f38d6229f0e666e53e6730f455d8ef