mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-18 00:36:04 +02:00
Initial pass
This commit is contained in:
commit
39c08a0eaa
7242 changed files with 1886006 additions and 0 deletions
26
node_modules/husky/lib/installer/gitRevParse.js
generated
vendored
Normal file
26
node_modules/husky/lib/installer/gitRevParse.js
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const slash_1 = __importDefault(require("slash"));
|
||||
const execa_1 = __importDefault(require("execa"));
|
||||
function default_1() {
|
||||
try {
|
||||
const { stdout } = execa_1.default.sync('git', [
|
||||
'rev-parse',
|
||||
'--show-toplevel',
|
||||
'--git-common-dir'
|
||||
]);
|
||||
const [topLevel, gitDir] = stdout
|
||||
.trim()
|
||||
.split('\n')
|
||||
// Normalize for Windows
|
||||
.map(slash_1.default);
|
||||
return { topLevel, gitDir };
|
||||
}
|
||||
catch (error) {
|
||||
throw new Error(error.stderr);
|
||||
}
|
||||
}
|
||||
exports.default = default_1;
|
Loading…
Add table
Add a link
Reference in a new issue