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(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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment