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

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

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

   **[Bertrand 
Paquet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bpaquet)** 
opened 
**[SCM-648](https://issues.apache.org/jira/browse/SCM-648?redirect=false)** and 
commented
   
   The checkout git command fail if repo does not contain a master branch, 
because the checkout try to do a git pull.
   
   In the case of an empty remote repo, this patch only do a git clone.
   
   After a such checkout, you can checkin a file, the remote branch will be 
automatically created by git.
   
   
   ---
   
   **Affects:** 1.5
   
   **Attachments:**
   - [patch](https://issues.apache.org/jira/secure/attachment/12718625/patch) 
(_37.57 kB_)
   - [patch](https://issues.apache.org/jira/secure/attachment/12718624/patch) 
(_6.27 kB_)
   




> Checkout should return 0 when cloning empty repo, with no master branch
> -----------------------------------------------------------------------
>
>                 Key: SCM-648
>                 URL: https://issues.apache.org/jira/browse/SCM-648
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.5
>            Reporter: Bertrand Paquet
>            Assignee: Olivier Lamy
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: patch, patch
>
>
> The checkout git command fail if repo does not contain a master branch, 
> because the checkout try to do a git pull.
> In the case of an empty remote repo, this patch only do a git clone.
> After a such checkout, you can checkin a file, the remote branch will be 
> automatically created by git.



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

Reply via email to