about summary refs log tree commit diff
path: root/src/store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/store.cc')
-rw-r--r--src/store.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/store.cc b/src/store.cc
index 12de50ec6424..5feb80c9de78 100644
--- a/src/store.cc
+++ b/src/store.cc
@@ -166,7 +166,10 @@ string expandHash(const Hash & hash, const string & target,
         {
             string path = *i;
             try {
+#if 0
                 if (path == target && hashPath(path) == hash)
+#endif
+                if (path == target && pathExists(path))
                     return path;
             } catch (Error & e) {
                 debug(format("stale path: %1%") % e.msg());