about summary refs log tree commit diff
path: root/src/nix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix.cc')
-rw-r--r--src/nix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix.cc b/src/nix.cc
index ec4c91788efd..f3549ead8442 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -160,7 +160,7 @@ static void opQuery(Strings opFlags, Strings opArgs)
             break;
 
         case qRefs: {
-            Strings refs = fstateRefs(termFromHash(hash));
+            Strings refs = fstateRefs(realiseFState(termFromHash(hash)));
             for (Strings::iterator j = refs.begin(); 
                  j != refs.end(); j++)
                 cout << format("%s\n") % *j;