New method for getting commit count
This commit is contained in:
parent
879203beaf
commit
ebf3cd8f0b
3 changed files with 3 additions and 312 deletions
|
@ -8,7 +8,7 @@ const path = require('path'),
|
|||
himalaya = require("himalaya"),
|
||||
glob = require("glob"),
|
||||
api = require("./api.js"),
|
||||
gitCommitCount = require("git-commit-count")
|
||||
child_process = require("child_process")
|
||||
|
||||
var constants = JSON.parse(fs.readFileSync(path.join(__dirname, 'constants.json')))
|
||||
|
||||
|
@ -445,8 +445,8 @@ module.exports = {
|
|||
}
|
||||
|
||||
async function updateCommits() {
|
||||
var commits = gitCommitCount()
|
||||
|
||||
// var commits = gitCommitCount()
|
||||
var commits = child_process.execSync("git rev-list --count HEAD")
|
||||
// var siteResponse = await (await fetch(`https://git.violets-purgatory.dev/bingus_violet/violets-purgatory/src/branch/${process.env.BRANCH || "origin"}`)).text()
|
||||
// var commits = siteResponse.substring(0, siteResponse.indexOf("Commits"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue