summaryrefslogtreecommitdiffstats
path: root/newbin
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-24 20:10:41 +0200
committertv <tv@shackspace.de>2015-06-24 20:11:02 +0200
commitd4ca5907d67c4f2374b6231ff03d8ed36b39ec96 (patch)
treeadaaca4d329501aeafb20d6cec6afaf81d0bdfe1 /newbin
parent0fa8921e803876d85e1a0d49d925c2919714ee56 (diff)
s/nixos-fetch-git/fetchgit/
Diffstat (limited to 'newbin')
-rwxr-xr-xnewbin/fetchgit25
-rwxr-xr-xnewbin/nixos-query8
2 files changed, 0 insertions, 33 deletions
diff --git a/newbin/fetchgit b/newbin/fetchgit
deleted file mode 100755
index b9fe90854..000000000
--- a/newbin/fetchgit
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/sh
-# usage: fetchgit REVISION URL WORKTREE
-set -euf
-
-git_rev=$1
-git_url=$2
-worktree=$3
-
-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"
diff --git a/newbin/nixos-query b/newbin/nixos-query
deleted file mode 100755
index 57761b520..000000000
--- a/newbin/nixos-query
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/sh
-set -euf
-nix-instantiate \
- -A config."$1" \
- --eval \
- --json \
- '<nixos>' \
- | jq -r .