[ https://issues.apache.org/jira/browse/SCM-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17962093#comment-17962093 ]
ASF GitHub Bot commented on SCM-576: ------------------------------------ jira-importer opened a new issue, #780: URL: https://github.com/apache/maven-scm/issues/780 **[Rune Bremnes](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=runebr)** opened **[SCM-576](https://issues.apache.org/jira/browse/SCM-576?redirect=false)** and commented Only the name of the files in the file set is used as arguments to the p4 labelsync command. This will only work if the specified files are in the working directory. Changing the file.getName() to file.getPath() fixes the problem for me. I have attached a patch. --- **Affects:** 1.4 **Attachments:** - [PerforceTagCommand.patch](https://issues.apache.org/jira/secure/attachment/12718757/PerforceTagCommand.patch) (_606 bytes_) > PerforceTagCommand does not work when a ScmFileSet is specified > --------------------------------------------------------------- > > Key: SCM-576 > URL: https://issues.apache.org/jira/browse/SCM-576 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Bug > Components: maven-scm-provider-perforce > Affects Versions: 1.4 > Reporter: Rune Bremnes > Assignee: Olivier Lamy > Priority: Major > Fix For: 1.5 > > Attachments: PerforceTagCommand.patch > > > Only the name of the files in the file set is used as arguments to the p4 > labelsync command. This will only work if the specified files are in the > working directory. Changing the file.getName() to file.getPath() fixes the > problem for me. I have attached a patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)