stop using -l switch for git branch command, seems git 2.19 will deprecate it
authorpavel.sher <pavel.sher@gmail.com>
Fri, 20 Jul 2018 07:21:11 +0000 (09:21 +0200)
committerpavel.sher <pavel.sher@gmail.com>
Fri, 20 Jul 2018 07:21:11 +0000 (09:21 +0200)
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/command/impl/CreateBranchCommandImpl.java

index 0f44a42b44600dccf16fb62d78f8c7f29007b95f..783fde863e60658fb9dfd222b21a0ba9a26a9de3 100644 (file)
@@ -53,7 +53,7 @@ public class CreateBranchCommandImpl extends BaseCommandImpl implements CreateBr
   public void call() throws VcsException {
     GitCommandLine cmd = getCmd();
     cmd.addParameter("branch");
-    cmd.addParameter("-l");
+    cmd.addParameter("--create-reflog");
     if (myTrack) {
       cmd.addParameter("--track");
     } else {