maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [37/50] [abbrv] git commit: use constant
Date Mon, 15 Jul 2013 11:24:48 GMT
use constant


Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/b8b9d81a
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/b8b9d81a
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/b8b9d81a

Branch: refs/heads/master
Commit: b8b9d81adb244962b8373cb6666ca5a9e9007900
Parents: 046f4bf
Author: imod <domi@fortysix.ch>
Authored: Fri Jul 12 09:16:07 2013 +0200
Committer: imod <domi@fortysix.ch>
Committed: Fri Jul 12 09:16:07 2013 +0200

----------------------------------------------------------------------
 .../scm/provider/git/jgit/command/checkin/JGitCheckInCommand.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/b8b9d81a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkin/JGitCheckInCommand.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkin/JGitCheckInCommand.java
b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkin/JGitCheckInCommand.java
index f220b99..c067366 100644
--- a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkin/JGitCheckInCommand.java
+++ b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/checkin/JGitCheckInCommand.java
@@ -37,6 +37,7 @@ import org.apache.maven.scm.provider.git.repository.GitScmProviderRepository;
 import org.codehaus.plexus.util.StringUtils;
 import org.eclipse.jgit.api.AddCommand;
 import org.eclipse.jgit.api.Git;
+import org.eclipse.jgit.lib.Constants;
 import org.eclipse.jgit.revwalk.RevCommit;
 import org.eclipse.jgit.transport.RefSpec;
 
@@ -113,7 +114,7 @@ public class JGitCheckInCommand
                 {
                     branch = git.getRepository().getBranch();
                 }
-                RefSpec refSpec = new RefSpec( "refs/heads/" + branch + ":" + "refs/heads/"
+ branch );
+                RefSpec refSpec = new RefSpec( Constants.R_HEADS + branch + ":" + Constants.R_HEADS
+ branch );
                 getLogger().info( "push changes to remote... " + refSpec.toString() );
                 JGitUtils.push( getLogger(), git, (GitScmProviderRepository) repo, refSpec
);
             }


Mime
View raw message