Centralize Git identity environment construction
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package git
|
||||
|
||||
func IdentityEnv(name, email string) []string {
|
||||
return []string{
|
||||
"GIT_AUTHOR_NAME=" + name,
|
||||
"GIT_AUTHOR_EMAIL=" + email,
|
||||
"GIT_COMMITTER_NAME=" + name,
|
||||
"GIT_COMMITTER_EMAIL=" + email,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user