hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".

Jenkins JIRA | Martin d'Anjou | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Steps to reproduce: When push.default is set to nothing like so in .gitconfig: {noformat} [push] default = nothing {noformat} Run the {{test_push_tags}} test: {noformat} mvn -Dtest=CliGitAPIImplTest#test_push_tags test {noformat} Result: {noformat} Running org.jenkinsci.plugins.gitclient.CliGitAPIImplTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.762 sec <<< FAILURE! - in org.jenkinsci.plugins.gitclient.CliGitAPIImplTest test_push_tags(org.jenkinsci.plugins.gitclient.CliGitAPIImplTest) Time elapsed: 2.725 sec <<< ERROR! hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing". at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1493) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1281) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1560) at org.jenkinsci.plugins.gitclient.GitAPITestCase.test_push_tags(GitAPITestCase.java:937) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jenkinsci.plugins.gitclient.CliGitAPIImplTest.runTest(CliGitAPIImplTest.java:30) {noformat}

    Jenkins JIRA | 2 years ago | Martin d'Anjou
    hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".
  2. 0

    Steps to reproduce: When push.default is set to nothing like so in .gitconfig: {noformat} [push] default = nothing {noformat} Run the {{test_push_tags}} test: {noformat} mvn -Dtest=CliGitAPIImplTest#test_push_tags test {noformat} Result: {noformat} Running org.jenkinsci.plugins.gitclient.CliGitAPIImplTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.762 sec <<< FAILURE! - in org.jenkinsci.plugins.gitclient.CliGitAPIImplTest test_push_tags(org.jenkinsci.plugins.gitclient.CliGitAPIImplTest) Time elapsed: 2.725 sec <<< ERROR! hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing". at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1493) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1281) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1560) at org.jenkinsci.plugins.gitclient.GitAPITestCase.test_push_tags(GitAPITestCase.java:937) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jenkinsci.plugins.gitclient.CliGitAPIImplTest.runTest(CliGitAPIImplTest.java:30) {noformat}

    Jenkins JIRA | 2 years ago | Martin d'Anjou
    hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      GitAPITestCase.test_push_tags
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1493)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1281)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1560)
      5. org.jenkinsci.plugins.gitclient.GitAPITestCase.test_push_tags(GitAPITestCase.java:937)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. org.jenkinsci.plugins
      CliGitAPIImplTest.runTest
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImplTest.runTest(CliGitAPIImplTest.java:30)
      1 frame