GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TypeScript/scripts/link-hooks.js at master · pathscale/TypeScript Expand file tree/ Copy pathlink-hooks.jsMore file actions 20 lines (15 loc) · 534 Bytes / Copy pathlink-hooks.jsFile metadata and controls20 lines (15 loc) · 534 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 var fs = require("fs"); var path = require("path"); var hooks = [ "post-checkout" ]; hooks.forEach(function (hook) { var hookInSourceControl = path.resolve(__dirname, "hooks", hook); if (fs.existsSync(hookInSourceControl)) { var hookInHiddenDirectory = path.resolve(__dirname, "..", ".git", "hooks", hook); if (fs.existsSync(hookInHiddenDirectory)) { fs.unlinkSync(hookInHiddenDirectory); } fs.linkSync(hookInSourceControl, hookInHiddenDirectory); } }); |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |