From a3fa1affb9a1a424700e811de2174ba6ca42bf21 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 3 Sep 2019 15:47:15 +0000 Subject: [PATCH] bugfixes --- authorize-keys.sh | 0 hooks/update.format.full | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 authorize-keys.sh diff --git a/authorize-keys.sh b/authorize-keys.sh old mode 100644 new mode 100755 diff --git a/hooks/update.format.full b/hooks/update.format.full index bef973f..0127f01 100755 --- a/hooks/update.format.full +++ b/hooks/update.format.full @@ -56,7 +56,7 @@ refs/heads/*) # Ignore "fatal: You are on a branch yet to be born" set +e fi - git --work-tree="${my_work_tree}" --git-dir="." checkout -f >/dev/null + git --work-tree="${my_work_tree}" --git-dir="." checkout "${ref_name}" -f >/dev/null my_changes=$(git --work-tree="${my_work_tree}" --git-dir="." diff --name-status HEAD $new_rev) if [ -n "$(echo "$my_changes" | grep -e "^A")" ]; then echo "$my_changes" | grep -e "^A" | cut -f 2 | \