aboutsummaryrefslogtreecommitdiff
path: root/lib/fetchGitData.js
AgeCommit message (Collapse)AuthorFilesLines
2015-07-13Fix parsing git message with REGEX_COMMIT_DETAILSJoshua Ma1-1/+1
Given the commit message ``` tree 2d257d54add0901a72fbe492538aec4a35b4f4a5 parent 21d9ce4eb278af46561e069d6410e72a88c38036 author Joshua Ma <[email protected]> 1436838814 -0700 committer Joshua Ma <[email protected]> 1436839048 -0700 main message secondary detail ``` REGEX_COMMIT_DETAILS previously incorrectly matched `secondary detail` as the message - it lets an optional newline match (A), followed by nongreedy `[\S\s]+`, until a double-newline (B) is found. The message used is what follows B. Since there's two double-newlines, before `main message` and `secondary detail`, the first double-newline is used towards (A) and the second set is the one that matches (B). So the message ends up being `secondary detail`. This change simplifies the regex to just a nongreedy `[\S\s]*` until the first double-newline, after which the message is expected.
2014-11-04Add Wercker CI support with tests.Steven Weathers1-1/+1
Fix minor lint error where a second semicolon appears in lib/fetchGitData.js
2014-09-11fetch all characters by selecting all whitespace and all none whitespaceSchaaf, Martin1-1/+1
2014-09-11fix parsing of multiline header responsesSchaaf, Martin1-1/+1
takes not known headers into account
2013-12-17Fix cainus/node-coveralls#30Juga Paazmaya1-1/+1
2013-11-08Fix step 3: code cleanup + faster/nimbler use of Git to obtain data ↵Christophe Porteneuve1-50/+28
(rev-parse and cat-file instead of multiple log calls)
2013-11-08Fix step 2: properly detect local Git branch, and just keep pre-provided one ↵Christophe Porteneuve1-31/+40
if any.
2013-08-24removed exec-sync. version 2.2.0 candidateGregg Caines1-38/+52
2013-07-30fixed git testGabe Hayes1-10/+1
2013-07-29add logging when git executable is unable to be usedGabe Hayes1-0/+1
2013-07-29added full test coverage on fetchGitDataGabe Hayes1-7/+1
2013-07-27collapsed logical blockGabe Hayes1-3/+2
2013-07-27tests for fetchGitDataGabe Hayes1-26/+37
2013-07-26fetch git data from command line gitGabe Hayes1-0/+111
- added exec-sync package to execute git commands - if a proper git hash is not passed, falls back to default values