use variables that are assigned in force-signed
authorkwadronaut <kwadronaut@leap.se>
Wed, 15 Mar 2017 22:20:11 +0000 (23:20 +0100)
committerkwadronaut <kwadronaut@leap.se>
Wed, 15 Mar 2017 22:20:11 +0000 (23:20 +0100)
git/force-signed-commits-hook

index f884399..71941ae 100644 (file)
@@ -19,9 +19,9 @@ while read oldrev newrev refname; do
 
   # Check for new branch or tag
   if [ "$oldrev" = "$zero_commit" ]; then
-    span=`git rev-list $newrev $excludeExisting`
+    span=`git rev-list $newrev $oldstuff`
   else
-    span=`git rev-list $oldrev..$newrev $excludeExisting`
+    span=`git rev-list $oldrev..$newrev $oldstuff`
   fi
 
   for COMMIT in $span;