Commit 75096f95 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Make sure that we have author and committer

In case we don't have it setup in ~/.gitconfig
parent d831e8e1
......@@ -64,10 +64,13 @@ describe Gitlab::EncodingHelper do
index.read_tree( unless repo.empty?
index.add(path: path, oid: oid, mode: 0100644)
user = { name: 'Test', email: '' }
tree: index.write_tree(repo),
author: user,
committer: user,
message: "Update #{path}",
parents: repo.empty? ? [] : [].compact,
update_ref: 'HEAD'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment