Skip to content

Commit

Permalink
[FIXED JENKINS-9071] git config options for email and user name now s…
Browse files Browse the repository at this point in the history
…ave properly.
  • Loading branch information
abayer committed Apr 13, 2011
1 parent aa753c3 commit a85452d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/main/java/hudson/plugins/git/GitSCM.java
Expand Up @@ -1209,13 +1209,21 @@ public String getGlobalConfigName() {
return globalConfigName;
}

public void setGlobalConfigName(String globalConfigName) {
this.globalConfigName = globalConfigName;
}

/**
* Global setting to be used in call to "git config user.email".
*/
public String getGlobalConfigEmail() {
return globalConfigEmail;
}

public void setGlobalConfigEmail(String globalConfigEmail) {
this.globalConfigEmail = globalConfigEmail;
}

/**
* Old configuration of git executable - exposed so that we can
* migrate this setting to GitTool without deprecation warnings.
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/hudson/plugins/git/GitSCM/config.jelly
Expand Up @@ -81,10 +81,10 @@
<f:textbox name="git.relativeTargetDir" value="${scm.relativeTargetDir}" />
</f:entry>
<f:entry title="Config user.name Value" field="gitConfigName">
<f:textbox />
<f:textbox name="git.gitConfigName" value="${scm.gitConfigName}" />
</f:entry>
<f:entry title="Config user.email Value" field="gitConfigEmail">
<f:textbox />
<f:textbox name="git.gitConfigEmail" value="${scm.gitConfigEmail}" />
</f:entry>

<!-- This needs more thought
Expand Down

0 comments on commit a85452d

Please sign in to comment.