Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15051

Camel GIT component does not check out the branch specified in branchName when cloning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.4.0
    • camel-git
    • None
    • This was tested on Windows 10 Pro with Camel 3.2.0 (Spring Boot 2.2.6) against GitHub.

    • Unknown

    Description

      When cloning a repository from a server (tested with GitHub) with the following Camel endpoint/options:

      git:///F:\localpath?operation=clone&remotePath=https://github.com/xxxxxxxx/cust-ir.git&username=xxxxxxxx&password=yyyyyyyy&remoteName=origin&branchName=branch_uat&synchronous=true

      The remote repository was correctly cloned to the localpath, but the branch specified is not created locally and not checked out.  The localpath working copy is the master branch.  Since Camel GIT does not have a checkout command, one would have to manually checkout the branch thus defeat the purpose of using the component.

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            bocamel John Yin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: