diff options
author | tv <tv@shackspace.de> | 2015-06-24 20:10:41 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-24 20:11:02 +0200 |
commit | d4ca5907d67c4f2374b6231ff03d8ed36b39ec96 (patch) | |
tree | adaaca4d329501aeafb20d6cec6afaf81d0bdfe1 /bin/nixos-fetch-git | |
parent | 0fa8921e803876d85e1a0d49d925c2919714ee56 (diff) |
s/nixos-fetch-git/fetchgit/
Diffstat (limited to 'bin/nixos-fetch-git')
-rwxr-xr-x | bin/nixos-fetch-git | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/bin/nixos-fetch-git b/bin/nixos-fetch-git deleted file mode 100755 index 7002208b5..000000000 --- a/bin/nixos-fetch-git +++ /dev/null @@ -1,32 +0,0 @@ -#! /bin/sh -# -# nixos-fetch-git : nixos-config -> ... -# -set -euf - -host=$1 - -target=root@$host - -git_rev=$(nixos-query "$host" nixpkgs.rev) -git_url=$(nixos-query "$host" nixpkgs.url) - -worktree=$nixpkgs_root/$host - -if [ ! -d "$worktree" ]; then - mkdir -p "$worktree" -fi - -cd "$worktree" - -git init -q - -if ! current_url=$(git config remote.src.url); then - git remote add src "$git_url" -elif [ "$current_url" != "$git_url" ]; then - git remote set-url src "$git_url" -fi - -git fetch src - -git checkout "$git_rev" |