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] [Comment Edited] (SCM-818) Updating doesn't work when in detached HEAD
Date Sun, 18 Mar 2018 00:38:00 GMT

    [ https://issues.apache.org/jira/browse/SCM-818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16403806#comment-16403806
] 

Michael Osipov edited comment on SCM-818 at 3/18/18 12:37 AM:
--------------------------------------------------------------

{{HEAD}} is the same as no arg, you would use {{FETCH_HEAD}} implicitly during pull, but still
better than the behavior now. Update wouldn't work on a detached head w/o the master anyway.


was (Author: michael-o):
{{HEAD}} is the same as no arg, you would use {{FETCH_HEAD}} implicitly during pull, but still
better than the behavior now.

> 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
>            Priority: Major
>
> 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