Browse Source

Location should be in the options map

Samuel W. Flint 3 years ago
parent
commit
393a082ef6
4 changed files with 4 additions and 3 deletions
  1. 1 1
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 1 1
      flake.nix
  4. 1 0
      src/lib/run.rs

+ 1 - 1
Cargo.lock

@@ -171,7 +171,7 @@ dependencies = [
 
 [[package]]
 name = "sync-it"
-version = "1.0.1"
+version = "1.0.2"
 dependencies = [
  "clap",
  "home",

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "sync-it"
-version = "1.0.1"
+version = "1.0.2"
 authors = ["Samuel W. Flint <swflint@flintfam.org>"]
 edition = "2018"
 

+ 1 - 1
flake.nix

@@ -20,7 +20,7 @@
 
             src = ./.;
 
-            cargoSha256 = "b3ma+72TI1jHcnllAswCh9bNeatQuM5jQlu922dBVm4=";
+            cargoSha256 = "Kk54lGkqD8TgUDsfKuu2d/EZMDJPIPueRexFHzeLGTg=";
 
             meta = with pkgs.stdenv.lib; {
               description = "A simple, customizable synchronization tool.";

+ 1 - 0
src/lib/run.rs

@@ -91,6 +91,7 @@ pub fn run_repository_sync(config: &Config, name: String) {
                     for (key, value) in &repository.options {
                         options.insert(key, value);
                     }
+                    options.insert("location", location);
                     let repo_type = config.repo_types.get(&repository.repo_type);
                     match repo_type {
                         Some(repo_type) => {