Skip to content
  • Junio C Hamano's avatar
    Merge branch 'ab/fetch-tags-noclobber' · d39cab39
    Junio C Hamano authored
    The rules used by "git push" and "git fetch" to determine if a ref
    can or cannot be updated were inconsistent; specifically, fetching
    to update existing tags were allowed even though tags are supposed
    to be unmoving anchoring points.  "git fetch" was taught to forbid
    updates to existing tags without the "--force" option.
    
    * ab/fetch-tags-noclobber:
      fetch: stop clobbering existing tags without --force
      fetch: document local ref updates with/without --force
      push doc: correct lies about how push refspecs work
      push doc: move mention of "tag <tag>" later in the prose
      push doc: remove confusing mention of remote merger
      fetch tests: add a test for clobbering tag behavior
      push tests: use spaces in interpolated string
      push tests: make use of unused $1 in test description
      fetch: change "branch" to "reference" in --force -h output
    d39cab39