Skip to content

Commit c5e19cf

Browse files
committed
test(feat): set local user email and user name for neogit tests
1 parent 6c16fbd commit c5e19cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/util/git_harness.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function M.prepare_repository()
3939
local working_dir = util.create_temp_dir("working-dir")
4040
vim.api.nvim_set_current_dir(working_dir)
4141
util.system(string.format("git clone %s %s", bare_repo_path, working_dir))
42+
util.system("git config user.email 'test@neogit.git'")
43+
util.system("git config user.name 'Neogit Test User'")
4244
util.system("git reset --soft HEAD~1")
4345
util.system("git rm --cached untracked.txt")
4446
util.system("git restore --staged a.txt")

0 commit comments

Comments
 (0)