OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-2814

make sure local repository is in the correct branch

    Details

      Description

      If for whatever reason the git-config of the local repository gets screwed, the connector only throws an ScmException.

      Maybe we should be able to handle this one specifically:

       
      org.openengsb.domain.scm.ScmException: org.eclipse.jgit.api.errors.InvalidConfigurationException: No value for key branch.master.merge found in configuration
      	at org.openengsb.connector.git.internal.GitServiceImpl.update(GitServiceImpl.java:166)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.openengsb.core.common.util.DefaultOsgiUtilsService$ServiceTrackerInvocationHandler.invoke(DefaultOsgiUtilsService.java:92)
      	at $Proxy117.update(Unknown Source)
      	at org.openengsb.opencit.core.projectmanager.internal.PollTask.doRun(PollTask.java:78)
      	at org.openengsb.opencit.core.projectmanager.internal.PollTask.run(PollTask.java:59)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: org.eclipse.jgit.api.errors.InvalidConfigurationException: No value for key branch.master.merge found in configuration
      	at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:189)
      	at org.openengsb.connector.git.internal.GitServiceImpl.update(GitServiceImpl.java:136)
      	... 17 more

        Gliffy Diagrams

        Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your JIRA administrators.

          Activity

          Hide
          Christoph Gritschenberger added a comment -

          Just found out.
          This Exception occurs when the repository is in the wrong branch

          Show
          Christoph Gritschenberger added a comment - Just found out. This Exception occurs when the repository is in the wrong branch

            People

            • Assignee:
              Stefan Dösinger
              Reporter:
              Christoph Gritschenberger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: