Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17795

clone.py should handle case 'local branch with no remote'

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 7.4
    • Component/s: Dev Tools
    • Upgrade notes:
      Hide

      Git version 1.8.4+ is required

      Show
      Git version 1.8.4+ is required
    • Sprint:
      DevOps Sprint 10

      Description

      The command ./clone.py someBranch -f fallback does the following:

      • if someBranch is a tag, checkout it
      • else if someBranch does not exist locally
        • if someBranch exists remotely, checkout and track it
        • else checkout fallback (recursive call to the same logic)
      • else checkout local someBranch and rebase with its remote

      This will fail if someBranch was created locally and not yet pushed.
      => rebase only if the remote exists

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: