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

ASF GitHub Bot commented on SCM-574:
------------------------------------

jira-importer opened a new issue, #790:
URL: https://github.com/apache/maven-scm/issues/790

   **[Andrey 
Paramonov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ndpar)** 
opened 
**[SCM-574](https://issues.apache.org/jira/browse/SCM-574?redirect=false)** and 
commented
   
   If there is no file in the Git index "git checkin" returns exit code 1, 
which causes failed CheckInScmResult. Because of that "mvn release:branch" 
always fails for Git repositories (see 
MRELEA[SE-579](https://issues.apache.org/jira/browse/SE-579)).
   
   We shouldn't probably call "git checkin" if there is nothing to check in. 
After I applied the attached patch, "mvn release:branch" succeeded.
   
   
   ---
   
   **Affects:** 1.4
   
   **Attachments:**
   - 
[GitCheckInCommand.patch](https://issues.apache.org/jira/secure/attachment/12718756/GitCheckInCommand.patch)
 (_1.10 kB_)
   
   **Issue Links:**
   - [MRELEASE-579](https://issues.apache.org/jira/browse/MRELEASE-579) Branch 
fails with error message
    (_**"is depended upon by"**_)
   
   2 votes, 0 watchers
   




> GitCheckInCommand fails on empty changed files list
> ---------------------------------------------------
>
>                 Key: SCM-574
>                 URL: https://issues.apache.org/jira/browse/SCM-574
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.4
>            Reporter: Andrey Paramonov
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 1.5
>
>         Attachments: GitCheckInCommand.patch
>
>
> If there is no file in the Git index "git checkin" returns exit code 1, which 
> causes failed CheckInScmResult. Because of that "mvn release:branch" always 
> fails for Git repositories (see MRELEASE-579).
> We shouldn't probably call "git checkin" if there is nothing to check in. 
> After I applied the attached patch, "mvn release:branch" succeeded.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to