From dac3b279e368a0ae06c1fc6f800b6f55e396bb32 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 6 Jun 2016 20:36:39 -0700 Subject: Fix special permission handling --- scripts/hash.rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/hash.rc b/scripts/hash.rc index e33b5682..5f894a6b 100644 --- a/scripts/hash.rc +++ b/scripts/hash.rc @@ -12,10 +12,12 @@ fn checkstatus {} hash=`{ switch($mode) { - case 120??? + case 12???? printf %s $1 | git -C $repo hash-object -w --stdin - case 100??? + case 10???? git -C $repo hash-object -w --stdin <$1 + case * + status=1 } } checkstatus -- cgit v1.2.3