aboutsummaryrefslogtreecommitdiff
path: root/lib/detectLocalGit.js
AgeCommit message (Collapse)AuthorFilesLines
2019-11-20fix typosNick Merwin1-1/+1
2019-11-20Remove `path.existsSync` (#248)XhmikosR1-2/+1
This is a leftover from pretty ancient Node.js versions.
2019-11-20ES6Nick Merwin1-28/+40
* remove unused variables * move `require`s at the top * check for prototype built-ins * run in strict mode * always check for error values in tests * make style consistent * mark Node.js 6 as the minimum supported version in package.json * Use the arrow return syntax * logger.js: use `Boolean` to make the intention clearer. * Use the rest params instead of arguments. * test/getOptions.js: beautify git data. * Update logger.js Remove `hasDebugEnvVariable` function; it's just a `process.env` check * Create .jshintrc
2017-03-30Parse commit from packed refs if not available in refs dir. (#163)Chas DeVeas1-1/+20
* Add .idea to .gitignore * Added alternative method for parsing current commit with test. * Fixing test. * Remove dependency on fs-extra.
2015-12-10Merge pull request #85 from addaleax/branch-name-detectionNick Merwin1-1/+2
Accept more valid git branch names
2015-11-06rm unneeded options, bump node in travisAndrii Shumada1-1/+1
2015-04-15Accept more valid git branch namesHauke Henningsen1-1/+2
According to git-check-ref-format(1), branch naming excludes a number of characters, but various non-word characters are definitely allowed. This modifies the `REGEX_BRANCH` detection to match branch names containing some non-word characters, e.g. `features/foo` or `bar-baz`.
2014-02-11Windows compat fixesGerard Escalante1-2/+2
Changed usage of '/' as root dir. Stopped tests from wiping out environment.
2014-01-31Fixing existsSync issues for older versions of nodeJonathan Kingston1-1/+2
2013-11-08Ah, right, ES5 has String#trim(), keep forgetting that…Christophe Porteneuve1-6/+2
2013-11-08Fix step 1: for dev-local uses, properly detect local Git branch and commitChristophe Porteneuve1-0/+30