1
0
mirror of https://github.com/danog/gift.git synced 2024-11-30 04:19:37 +01:00

for Travis: make use of Repo#identify to ensure that our repository has an identity set when running the #create_tag test

This commit is contained in:
Luke Plaster 2013-03-14 23:51:42 +00:00
parent 2ece84faf6
commit 1846098db7

View File

@ -235,10 +235,11 @@ describe "Repo", ->
git.init git_dir, (err) ->
return done err if err
repo = git(git_dir)
fs.writeFileSync "#{git_dir}/foo.txt", "cheese"
repo.add "#{git_dir}/foo.txt", (err) ->
return done err if err
repo.commit "initial commit", {all: true}, done
repo.identify new Actor('name', 'em@il'), ->
fs.writeFileSync "#{git_dir}/foo.txt", "cheese"
repo.add "#{git_dir}/foo.txt", (err) ->
return done err if err
repo.commit "initial commit", {all: true}, done
after (done) ->
exec "rm -rf #{ git_dir }", done