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)