aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/flakeref.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-04-19 11:16:14 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-04-19 11:16:14 +0200
commit46cb15df9b3501ca631779fa7d5c6299c1c17b53 (patch)
tree1c84d3c976cc70131efac35d6f8b5379dd3625cd /src/libexpr/primops/flakeref.cc
parent6e4210d8ce76f52d9fd717660ea24b98ba780843 (diff)
Fix assertion failure in FlakeRef::to_string()
Diffstat (limited to 'src/libexpr/primops/flakeref.cc')
-rw-r--r--src/libexpr/primops/flakeref.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/flakeref.cc b/src/libexpr/primops/flakeref.cc
index 973987469..97f31377a 100644
--- a/src/libexpr/primops/flakeref.cc
+++ b/src/libexpr/primops/flakeref.cc
@@ -128,7 +128,7 @@ std::string FlakeRef::to_string() const
}
else if (auto refData = std::get_if<FlakeRef::IsGit>(&data)) {
- assert(ref || !rev);
+ assert(!rev || ref);
string = refData->uri;
}