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:
parent
2ece84faf6
commit
1846098db7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user