Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
ansible
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • OpenEdx
  • ansible
  • Repository

Switch branch/tag
  • ansible
  • library
  • source_control
  • git
Find file
BlameHistoryPermalink
  • Jesse Keating's avatar
    Make sure requested version tag gets downloaded · 4593e3c3
    There is a subtle bug in how the git module currently works. If the
    version you request is a tag name, and you've already got the repo
    cloned, and the tag name is a new tag, but refers to the already checked
    out working copy, the git module would exit early without change. This
    is bad as it means the new tag ref was not fetched and could not be used
    in later tasks.
    
    This change will check if the version is a remote tag, and if the tag
    doesn't exist locally. If that is true, it'll do a fetch.
    
    The activity could still be seen as not a change, because the working
    copy won't be updated, if the new tag refers to the already checked out
    copy, but that's not different than before and can be fixed as a more
    comprehensive overhaul of tracking change in the git module.
    Jesse Keating committed Feb 07, 2014
    4593e3c3
git 19.5 KB
Edit