Skip to content

Commit c48aec9

Browse files
author
Matthew Rothenberg
committed
fix travis-ci by mocking git user
Tests assumed user already has a git environment user setup, but travis-ci does not. Mock the user setup in our fake $HOME so travis-ci tests work again. Auditors: csilvers Test Plan: deploy to alternate branch on github, watch travis-ci results
1 parent 9e22729 commit c48aec9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/basic.t

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ has certain configuration files installed.
1414
$ echo "git is fun lol" > $HOME/.git_template/commit_template
1515
$ echo "[monkey]\n\tking = sun wukong" > $HOME/.gitconfig.khan
1616

17+
SETUP: let's assume the user already has personal git setup.
18+
19+
$ git config --global user.email "fleetwood@gmail.com"
20+
$ git config --global user.name "Fleet Wood"
21+
1722
--------------------------------------------------------------------------------
1823
We can use ka-clone to clone an arbitrary repository:
1924

examples/errors.t

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ has certain configuration files installed.
1414
$ echo "git is fun lol" > $HOME/.git_template/commit_template
1515
$ echo "[monkey]\n\tking = sun wukong" > $HOME/.gitconfig.khan
1616

17+
SETUP: let's assume the user already has personal git setup.
18+
19+
$ git config --global user.email "fleetwood@gmail.com"
20+
$ git config --global user.name "Fleet Wood"
21+
1722
--------------------------------------------------------------------------------
1823
Using ka-clone from a nonexistent source should throw an intelligent error:
1924

0 commit comments

Comments
 (0)