Skip to content

Updateing redmine git repository / No redmine git update on branche #49

Description

@toples

Hi guys,
first I have to say that you have done an amazing job!

My configuration

Redmine version         4.0.3.stable
redmine_gitlab_hook	4.0.0
GitLab 			12.1.1 

I had to change the following line in
plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb
in order to sync the changes of my master branch from the gitlab repository to redmine ( I use ssh for pulling the changes ):

if Setting.plugin_redmine_gitlab_hook['all_branches'] == 'yes'
      # fetch --all didnt do anything :-(
      # command = git_command(prefix, "fetch --all#{prune}", repository)
      command = git_command(prefix, "pull", repository)

      logger.debug { "a) Command: #{command}, #{prefix}, #{repository}" }
      exec(command)

Now when I push changes from my local master branch to remote master branch ( even the refs # @ works ) I can see the changes in redmine (and they are the same as the ones in gitlab) So far me happy :-)

Now if I create an addition branch for ex. "bugs" and i push it from my local to the remote, I can see the branch in gitlab, but in redmineI only see the master branch ( the log file of redmine doenst show any activities, when I push on my second branch "bugs" ).

This is what I see in redmine terminal when I do an git branch -a

redmine@dev:~/redmine/git/p1$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/bugs
  remotes/origin/feature
  remotes/origin/master

and yet redmine repository browser, shows me only the master.

Could you give me some input here, what should I do in this case?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions