summaryrefslogtreecommitdiff
path: root/scripts/hash.rc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hash.rc')
-rw-r--r--scripts/hash.rc6
1 files changed, 4 insertions, 2 deletions
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