Make sure that we have author and committer
In case we don't have it setup in ~/.gitconfig
This commit is contained in:
parent
d831e8e1d0
commit
75096f958c
|
@ -64,10 +64,13 @@ describe Gitlab::EncodingHelper do
|
|||
index.read_tree(repo.head.target.tree) unless repo.empty?
|
||||
|
||||
index.add(path: path, oid: oid, mode: 0100644)
|
||||
user = { name: 'Test', email: 'test@example.com' }
|
||||
|
||||
Rugged::Commit.create(
|
||||
repo,
|
||||
tree: index.write_tree(repo),
|
||||
author: user,
|
||||
committer: user,
|
||||
message: "Update #{path}",
|
||||
parents: repo.empty? ? [] : [repo.head.target].compact,
|
||||
update_ref: 'HEAD'
|
||||
|
|
Loading…
Reference in New Issue