maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SCM-818) Updating doesn't work when in detached HEAD
Date Fri, 23 Mar 2018 13:02:00 GMT

     [ https://issues.apache.org/jira/browse/SCM-818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov reassigned SCM-818:
----------------------------------

    Assignee: Michael Osipov

> Updating doesn't work when in detached HEAD
> -------------------------------------------
>
>                 Key: SCM-818
>                 URL: https://issues.apache.org/jira/browse/SCM-818
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.9.4
>            Reporter: Alexandre Garnier
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 1.9.6
>
>
> When calling {{scm:update}} in detached HEAD:
> {code}
> [INFO] Executing: /bin/sh -c cd '/path/to/project' && 'git' 'log' '-n1' '--date-order'
'master'
> [INFO] Working directory: /path/to/project
> [ERROR] Provider message:
> [ERROR] The git-log command failed.
> [ERROR] Command output:
> [ERROR] fatal: ambiguous argument 'master': unknown revision or path not in the working
tree.
> {code}
> When no {{ScmVersion}} is given, the plugin defaults to {{master}} (https://github.com/apache/maven-scm/blob/master/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/update/GitUpdateCommand.java#L169),
defaulting to {{HEAD}} would be better, no ?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message