hudson.plugins.git.GitException: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128:<br>23:45:45 stdout: origin/pr/11340/merge^{commit}<br>23:45:45 <br>23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree.<br>23:45:45 Use '--' to separate paths from revisions<br>23:45:45

Google Groups | david....@gmail.com (JIRA) | 4 months ago
  1. 0

    [JIRA] (JENKINS-22253) Problems Parsing

    Google Groups | 4 months ago | david....@gmail.com (JIRA)
    hudson.plugins.git.GitException: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128:<br>23:45:45 stdout: origin/pr/11340/merge^{commit}<br>23:45:45 <br>23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree.<br>23:45:45 Use '--' to separate paths from revisions<br>23:45:45
  2. 0

    {quote} 23:45:17 GitHub pull request #11340 of commit 65a9359e86ae45224b8154957f5a81dcf743d305 automatically merged. 23:45:17 [EnvInject] - Loading node environment variables. 23:45:17 Building in workspace /var/lib/jenkins/jobs/salt-pr-build/workspace 23:45:17 23:45:17 Deleting project workspace... done 23:45:17 23:45:17 Cloning the remote Git repository 23:45:17 Cloning repository https://github.com/saltstack/salt.git 23:45:17 Fetching upstream changes from https://github.com/saltstack/salt.git 23:45:44 Fetching upstream changes from https://github.com/saltstack/salt.git 23:45:45 FATAL: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128: 23:45:45 stdout: origin/pr/11340/merge^{commit} 23:45:45 23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree. 23:45:45 Use '--' to separate paths from revisions 23:45:45 23:45:45 hudson.plugins.git.GitException: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128: 23:45:45 stdout: origin/pr/11340/merge^{commit} 23:45:45 23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree. 23:45:45 Use '--' to separate paths from revisions 23:45:45 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1183) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1160) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1156) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:972) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:982) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:416) 23:45:45 at hudson.plugins.git.GitAPI.revParse(GitAPI.java:257) 23:45:45 at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:83) 23:45:45 at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:787) 23:45:45 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879) 23:45:45 at hudson.model.AbstractProject.checkout(AbstractProject.java:1414) 23:45:45 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671) 23:45:45 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 23:45:45 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) 23:45:45 at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134) 23:45:45 at hudson.model.Run.execute(Run.java:1676) 23:45:45 at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) 23:45:45 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:45:45 at hudson.model.Executor.run(Executor.java:231) {quote}

    Jenkins JIRA | 3 years ago | Pedro Algarvio
    hudson.plugins.git.GitException: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128: stdout: origin/pr/11340/merge^{commit} stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions
  3. 0

    {noformat} 23:45:17 GitHub pull request #11340 of commit 65a9359e86ae45224b8154957f5a81dcf743d305 automatically merged. 23:45:17 [EnvInject] - Loading node environment variables. 23:45:17 Building in workspace /var/lib/jenkins/jobs/salt-pr-build/workspace 23:45:17 23:45:17 Deleting project workspace... done 23:45:17 23:45:17 Cloning the remote Git repository 23:45:17 Cloning repository https://github.com/saltstack/salt.git 23:45:17 Fetching upstream changes from https://github.com/saltstack/salt.git 23:45:44 Fetching upstream changes from https://github.com/saltstack/salt.git 23:45:45 FATAL: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128: 23:45:45 stdout: origin/pr/11340/merge^{commit} 23:45:45 23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree. 23:45:45 Use '--' to separate paths from revisions 23:45:45 23:45:45 hudson.plugins.git.GitException: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128: 23:45:45 stdout: origin/pr/11340/merge^{commit} 23:45:45 23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree. 23:45:45 Use '--' to separate paths from revisions 23:45:45 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1183) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1160) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1156) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:972) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:982) 23:45:45 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:416) 23:45:45 at hudson.plugins.git.GitAPI.revParse(GitAPI.java:257) 23:45:45 at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:83) 23:45:45 at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:787) 23:45:45 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879) 23:45:45 at hudson.model.AbstractProject.checkout(AbstractProject.java:1414) 23:45:45 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671) 23:45:45 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 23:45:45 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) 23:45:45 at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134) 23:45:45 at hudson.model.Run.execute(Run.java:1676) 23:45:45 at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) 23:45:45 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:45:45 at hudson.model.Executor.run(Executor.java:231) {noformat}

    Jenkins JIRA | 3 years ago | Pedro Algarvio
    hudson.plugins.git.GitException: Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128: stdout: origin/pr/11340/merge^{commit} stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    'ambiguous argument' error

    GitHub | 3 years ago | alexwhitman
    hudson.plugins.git.GitException: Command "git rev-parse origin/pr/4/merge^{commit}" returned status code 128: stdout: origin/pr/4/merge^{commit} stderr: fatal: ambiguous argument 'origin/pr/4/merge^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions
  6. 0

    also similar to https://github.com/janinko/ghprb/issues/171 Setup: * free style project * multiple scms repository setting * two git repositories configured * stash notifications for both repositories * a commit is pushed to second repository Build console output: {code} commit notification 108127644b30e28d326702752aa1150e05227156 [EnvInject] - Loading node environment variables. [EnvInject] - Preparing an environment for the build. [EnvInject] - Keeping Jenkins system variables. [EnvInject] - Keeping Jenkins build variables. [EnvInject] - Injecting as environment variables the properties content [EnvInject] - Variables injected successfully. [EnvInject] - Injecting contributions. Building on master in workspace /home/jenkins/workspace/TestNotification > /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/local/bin/git config remote.origin.url ssh://git@git.mydomain.com:7999/project/repo1.git # timeout=10 Fetching upstream changes from ssh://git@git.mydomain.com:7999/project/repo1.git > /usr/local/bin/git --version # timeout=10 > /usr/local/bin/git -c core.askpass=true fetch --tags --progress ssh://git@git.mydomain.com:7999/project/repo1.git +refs/heads/*:refs/remotes/origin/* > /usr/local/bin/git rev-parse 108127644b30e28d326702752aa1150e05227156^{commit} # timeout=10 FATAL: Command "/usr/local/bin/git rev-parse 108127644b30e28d326702752aa1150e05227156^{commit}" returned status code 128: stdout: 108127644b30e28d326702752aa1150e05227156^{commit} stderr: fatal: ambiguous argument '108127644b30e28d326702752aa1150e05227156^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' hudson.plugins.git.GitException: Command "/usr/local/bin/git rev-parse 108127644b30e28d326702752aa1150e05227156^{commit}" returned status code 128: stdout: 108127644b30e28d326702752aa1150e05227156^{commit} stderr: fatal: ambiguous argument '108127644b30e28d326702752aa1150e05227156^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1457) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1433) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1429) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1117) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1127) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:523) at hudson.plugins.git.GitAPI.revParse(GitAPI.java:258) at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:85) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:872) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:985) at hudson.scm.SCM.checkout(SCM.java:488) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:118) at hudson.model.AbstractProject.checkout(AbstractProject.java:1252) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {code} More detailed steps for reproduction: * download latest jenkins and start it * install GIT Plugin * install Multiple SCMs plugin * create freestyle project like in screenshots * unpack attached repos to ~ (if you choose different directory, you will need to modify job config and the url) * call http://<host>:<port>/git/notifyCommit?sha1=ba2ab18cf2323b131777b380f53137491e11d136&url=%7E%2FJENKINS-26587%2Frepo2

    Jenkins JIRA | 2 years ago | Vasili Kvockin
    hudson.plugins.git.GitException: Command "/usr/local/bin/git rev-parse 108127644b30e28d326702752aa1150e05227156^{commit}" returned status code 128: stdout: 108127644b30e28d326702752aa1150e05227156^{commit} stderr: fatal: ambiguous argument '108127644b30e28d326702752aa1150e05227156^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "git rev-parse origin/pr/11340/merge^{commit}" returned status code 128:<br>23:45:45 stdout: origin/pr/11340/merge^{commit}<br>23:45:45 <br>23:45:45 stderr: fatal: ambiguous argument 'origin/pr/11340/merge^{commit}': unknown revision or path not in the working tree.<br>23:45:45 Use '--' to separate paths from revisions<br>23:45:45

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl.revParse
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1183)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1160)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1156)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:972)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:982)
      6. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:416)
      6 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitAPI.revParse(GitAPI.java:257)
      2. hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:83)
      3. hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:787)
      4. hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
      4 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    6. Hudson
      AbstractBuild$AbstractBuildExecution.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
      1 frame
    7. com.tikal.jenkins
      MultiJobBuild$MultiJobRunnerImpl.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134)
      1 frame
    8. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1676)
      1 frame
    9. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      1 frame
    10. Hudson
      ResourceController.execute
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      1 frame