Issue Type: Bug Bug
Assignee: Nicolas De Loof
Components: git
Created: 08/Oct/14 2:59 PM
Description:

Default refspec according to the documentation is

+refs/heads/*:refs/remotes/REPOSITORYNAME/*

When I click on "Trigger build" in Stash's pull request overview, my job fails, because it cannot find commit in the specified refspecs (because commit is in pull requests, not in heads).

> C:\Program Files (x86)\Git\bin\git.exe rev-parse "1c2ead96dfe52f7f0675161f025c2541ede93782^{commit}" # timeout=10
FATAL: Command "C:\Program Files (x86)\Git\bin\git.exe rev-parse "1c2ead96dfe52f7f0675161f025c2541ede93782^{commit}"" returned status code 128:
stdout: 1c2ead96dfe52f7f0675161f025c2541ede93782^{commit}

stderr: fatal: ambiguous argument '1c2ead96dfe52f7f0675161f025c2541ede93782^{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 "C:\Program Files (x86)\Git\bin\git.exe rev-parse "1c2ead96dfe52f7f0675161f025c2541ede93782^{commit}"" returned status code 128:
stdout: 1c2ead96dfe52f7f0675161f025c2541ede93782^{commit}

stderr: fatal: ambiguous argument '1c2ead96dfe52f7f0675161f025c2541ede93782^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Project: Jenkins
Priority: Minor Minor
Reporter: Pavel Baranchikov
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to