Vincent Seguin created MBUILDNUM-87:
---------------------------------------

             Summary: Branch is always UNKNOWN with git
                 Key: MBUILDNUM-87
                 URL: https://jira.codehaus.org/browse/MBUILDNUM-87
             Project: Mojo Build Number Maven Plugin
          Issue Type: Bug
    Affects Versions: buildnumber-maven-plugin-1.0, 1.1
         Environment: MacOS X
            Reporter: Vincent Seguin
         Attachments: fix-git-branch.patch

Plugin tries to obtain branch from URL, which doesn't work with git.

Steps to reproduce:
1. Add the following section to a pom build in a git repository
         <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                
<artifactId>buildnumber-maven-plugin</artifactId>
                                <version>1.1-SNAPSHOT</version>
                                <executions>
                                        <execution>
                                                <phase>validate</phase>
                                                <goals>
                                                        <goal>create</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
2. Look at build output - branch is always identified as UNKNOWN

Patch attached (works, but might be questionable - I'm definitely not a maven 
plugin expert).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to