Ref syncing fails when notes are pushed

XMLWordPrintable

      When notes are updated in upstream repositories, ref syncing correctly mirrors them but then fails to raise the RepositoryRefsChangedEvent for the update with the following error:

      2013-10-09 15:41:59,715 WARN  [refsync:thread-1] amierzwicki 941x1250266x1 fryl9r 172.24.4.5 SSH - git-receive-pack '/KEY/upstream.git' c.a.s.i.r.sync.ForkRefSyncListener ~USER/fork[551]: Could not synchronize changes from KEY/upstream[81]
      com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: git fetch updated refs/heads/refs/notes/commits, but the ref does not exist
              at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[stash-scm-git-common-2.8.1_1380678110000.jar:na]
              ...
      

      This happens because the main RepositoryPushEvent includes RefChange entries for refs/notes/ refs, but ref syncing (incorrectly) assumes that anything that is not a tag is a branch.

              Assignee:
              Bryan Turner (Inactive)
              Reporter:
              Bryan Turner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: