try using local path for buildSDK in pre-commit
authorAlan Knowles <alan@roojs.com>
Mon, 21 Jan 2019 03:46:12 +0000 (11:46 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 21 Jan 2019 03:46:12 +0000 (11:46 +0800)
buildSDK/pre-commit

index 3d9d1c9..6e8a240 100755 (executable)
@@ -65,7 +65,7 @@ function changed_files()
 
 function trigger_action_file($fn, $filename)
 {
-    $ret = explode("\n",file_get_contents(__DIR__ . "/" . $filename));
+    $ret = explode("\n",file_get_contents("buildSDK/" . $filename));
     $ret[] = "buildSDK/".$filename;
     return trigger_action($fn, $ret);