aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authornotgne22020-12-20 11:19:02 -0700
committerGitHub2020-12-20 11:19:02 -0700
commit91e934fd9e1e06044f75a3e3ad998813c2a90fb5 (patch)
treed0f71ebfe38a06cafb76e4d6bdfe1d1cbc19d1bf /src/utils
parent7d4020f1300f076341627785c53dd151fc7d1a61 (diff)
parent3adc593f19962cccf49f8f5194394e0d93502677 (diff)
Merge pull request #30 from serokell/notgne2/fix-substitution
Fix fast_connection flag to enable substitute-on-destination correctly
Diffstat (limited to '')
-rw-r--r--src/utils/push.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/push.rs b/src/utils/push.rs
index b0a8b2f..503e062 100644
--- a/src/utils/push.rs
+++ b/src/utils/push.rs
@@ -134,7 +134,7 @@ pub async fn push_profile(
let mut copy_command_ = Command::new("nix");
let mut copy_command = copy_command_.arg("copy");
- if let Some(true) = deploy_data.merged_settings.fast_connection {
+ if deploy_data.merged_settings.fast_connection != Some(true) {
copy_command = copy_command.arg("--substitute-on-destination");
}