Skip to content

Commit 16099f8

Browse files
committed
Set explicit username for hg commit and hg tag
1 parent dbac5f9 commit 16099f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/support/factories.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ end
124124

125125
def create_hg_tag(project, version)
126126
Dir.cd(hg_path(project)) do
127-
run "hg tag #{Process.quote(version)}"
127+
run "hg tag -u #{Process.quote("Your Name <[email protected]>")} #{Process.quote(version)}"
128128
end
129129
end
130130

131131
def create_hg_commit(project, message = "new commit")
132132
Dir.cd(hg_path(project)) do
133133
File.write("src/#{project}.cr", "# #{message}", mode: "a")
134-
run "hg commit -A -m #{Process.quote(message)}"
134+
run "hg commit -u #{Process.quote("Your Name <[email protected]>")} -A -m #{Process.quote(message)}"
135135
end
136136
end
137137

0 commit comments

Comments
 (0)