Skip to content

Commit

Permalink
Using a standard user for initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Dec 20, 2022
1 parent 3da95d8 commit a3f3a80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions __tests__/spec/sanity-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const assert = require('assert')
const path = require('path')
const EOL = require('os').EOL

const fs = require('fs-extra')
const request = require('supertest')
Expand Down Expand Up @@ -45,7 +44,7 @@ describe('The Prototype Kit', () => {
await exec('git log', { cwd: tmpDir }, (data) => outputLines.push(data.toString()))

function getLastMeaningfulLineTrimmed (outputLines) {
const meaningulLines = outputLines.join(EOL).split(EOL).filter(line => line !== '')
const meaningulLines = outputLines.join('').split('\n').filter(line => line !== '')
return meaningulLines.pop().trim()
}

Expand Down
2 changes: 1 addition & 1 deletion bin/cli
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function updatePackageJson (packageJsonPath) {

async function initialiseGitRepo () {
try {
return exec('git init && git add -A . && git commit -am "Created prototype kit."')
return exec('git init && git add -A . && git -c "user.email=gov.uk-prototype@digital.cabinet-office.gov.uk" -c "user.name=GOV.UK Prototype Kit" commit -am "Created prototype kit."')
} catch (e) {
console.log('error initialising git repo')
console.log(e.message)
Expand Down

0 comments on commit a3f3a80

Please sign in to comment.