You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexandre Garnier (JIRA)" <ji...@apache.org> on 2016/03/18 13:43:33 UTC

[jira] [Created] (SCM-818) Updating doesn't work when in detached HEAD

Alexandre Garnier created SCM-818:
-------------------------------------

             Summary: 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-git
    Affects Versions: 1.9.4
            Reporter: Alexandre Garnier


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}}, defaulting to {{HEAD}} would be better, no ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)