You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2018/03/29 19:33:00 UTC

[jira] [Commented] (SCM-869) gitexe list() implemented incorrectly

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

Michael Osipov commented on SCM-869:
------------------------------------

Your fixed is based on the [API contract|https://github.com/apache/maven-scm/blob/master/maven-scm-api/src/main/java/org/apache/maven/scm/command/list/AbstractListCommand.java#L39], isn't it?

> gitexe list() implemented incorrectly
> -------------------------------------
>
>                 Key: SCM-869
>                 URL: https://issues.apache.org/jira/browse/SCM-869
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.9.5, 1.9.6
>            Reporter: Ilya Basin
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>
> Taking the Svn implementation as a model, ScmProvider.list() should be implemented as follows:
>  * The command must directly query the remote repository for files
>  * A local working copy is unnecessary and if it doesn't exist, the remote repository must not be checked out.
>  * fileSet.getBasedir() indicates where to run the scm binary. The recommended value is ".".
>  * fileSet.getFileList() indicates the files to list
>  * repository indicates the repo URL
> Git (among other SCMs) does not support listing remote files, so the command should just fail.
> For listing files in a working copy, users should call the ScmProvider.status() method instead.



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