From 0daf924b43d0750b285a5e857eb9946a9a71e6cc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 7 Mar 2016 18:40:24 -0400 Subject: privdata/relocate better than symlinks because this way no conflict can ever occur and, commit from hook --- contrib/post-checkout-hook | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 contrib/post-checkout-hook (limited to 'contrib/post-checkout-hook') diff --git a/contrib/post-checkout-hook b/contrib/post-checkout-hook deleted file mode 100755 index 38998398..00000000 --- a/contrib/post-checkout-hook +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# git post-checkout hook, used by propellor's author to maintain a -# joeyconfig branch where config.hs is a symlink to joeyconfig.hs -# -# Each time this hook is run, it checks if it's on a branch with -# name ending in "config". If so, config.hs is pointed at $branch.hs -# Otherwise, config.hs is pointed at config-simple.hs -# - -set -e -prevhead="$1" -newhead="$2" -branchcheckout="$3" -if [ "$branchcheckout" != 0 ]; then - branch="$(git symbolic-ref --short HEAD)" - case "$branch" in - "") - true - ;; - *config) - ln -sf "$branch".hs config.hs - ;; - *) - ln -sf config-simple.hs config.hs - ;; - esac -fi -- cgit v1.3-2-g0d8e