1
0
mirror of https://github.com/danog/gift.git synced 2024-11-26 20:04:47 +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) -> git.init git_dir, (err) ->
return done err if err return done err if err
repo = git(git_dir) repo = git(git_dir)
fs.writeFileSync "#{git_dir}/foo.txt", "cheese" repo.identify new Actor('name', 'em@il'), ->
repo.add "#{git_dir}/foo.txt", (err) -> fs.writeFileSync "#{git_dir}/foo.txt", "cheese"
return done err if err repo.add "#{git_dir}/foo.txt", (err) ->
repo.commit "initial commit", {all: true}, done return done err if err
repo.commit "initial commit", {all: true}, done
after (done) -> after (done) ->
exec "rm -rf #{ git_dir }", done exec "rm -rf #{ git_dir }", done